webpackcommand in your terminal. Before running Webpack, you will need a
webpack.config.jsfile in the root of your project. Below is a simple example:
--watchflag. Any changes to your source files will automatically re-run your build. Note that your build will be significantly faster on subsequent changes than when running Webpack from scratch.
npm run [scriptName for this example either dev, watch or prod]to run the associated script.