DEV Community

Discussion on: How to configure Webpack 4 or 5 from scratch for a basic website

Collapse
 
wordsofdefiance profile image
David Accomazzo

Is there a way to set up webpack with a watcher, so that anytime you edit a scss or js file it automatically runs the sass/babel/postcss tasks?

Collapse
 
antonmelnyk profile image
Anton Melnyk • Edited

Of course there is, for example you can use webpack-dev-server for that. But that is way out of scope of this guide and this is more advanced stuff.

webpack.js.org/concepts/hot-module...