When running webpack, it's possible to send a "watch" flag that will watch your project files for any changes and then rebuild them. Find out how this can make the experience of development much smoother.
So let's add a watch command…to our package Jason file.…Great.…So here we have our build command.…Let's also add a watch command…and the watch command is just webpack…with a w flag so two hyphens and a w.…So now if I run npm run watch,…notice that the cursor stays in place.…It doesn't end the process.…
It's still watching and listening for any changes.…So let's make the screen a little bit smaller…and I'm going to make Sublime a little bit smaller too…so that I can make an edit to my index file…and so that we can read it.…
- What is webpack?
- Running webpack from the command line
- Setting up loaders
- Loading CSS
- Compiling SCSS
- Using webpack plugins
Skill Level Intermediate
Workflow Tools for Web Developerswith Christina Truong1h 13m Intermediate
1. What is webpack?
2. webpack Loaders
3. webpack and CSS
4. webpack Plugins
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.Cancel
Take 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.