Learn how the vendor bundle allows you to wrap framework and library code into its own bundle, which is then cached on the user's computer, and doesn't have to reload for each page.
- [Instructor] Now that we know how to incorporate the…commons chunk plug in.…We can use it to create…a bundle of all of our library files.…In other words, we're going to create a vendor bundle…that's going to have anything related to…a library of framework that's been imported.…The first place I want to start out here is…actually inside of the source folder.…And we're going to create a new file called Index JS.…So we'll save this as index.js…and inside of this file we're going to…copy and paste one of our components about or contact.…
We'll just paste this directly here into this file.…So instead of calling this about,…we're going to call it display.…So lets go ahead and make some adjustments to our div here.…We'll just have it say important announcement.…Cool, so our index is created and once I've done that…I can actually delete everything else in the folder.…So we're going to delete about html, about java script,…contact html and contact js.…
Cool, so this should be our only file…that's living in that source folder at this point.…
Author
Released
12/4/2017- What is webpack?
- Running webpack from the command line
- Setting up loaders
- Loading CSS
- Compiling SCSS
- Using webpack plugins
Skill Level Intermediate
Duration
Views
Related Courses
-
Workflow Tools for Web Developers
with Christina Truong1h 13m Intermediate
-
Introduction
-
Welcome34s
-
-
1. What is webpack?
-
What is webpack?1m 59s
-
Installing webpack3m 1s
-
Creating a webpack config3m 40s
-
Using npm build scripts1m 18s
-
Using a watch command2m 1s
-
-
2. webpack Loaders
-
What is a loader?1m 17s
-
Setting up babel-loader3m 40s
-
Using babel presets2m 44s
-
Using babel-loader for React4m 12s
-
-
3. webpack and CSS
-
Loading CSS with webpack4m 44s
-
Compiling SCSS3m 17s
-
Loading images3m 22s
-
-
4. webpack Plugins
-
What is code splitting?1m 2s
-
Adding multiple entry points5m 52s
-
Bundling vendor files2m 41s
-
-
Conclusion
-
Next steps1m 1s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Bundling vendor files