npm i -g yarn
yarn install
now use the scripts defined in packages.json to run webpack dev server which monitors for changes in files
yarn run dev-server
Check webpack.config.js for the entry, output and rules for building our final js file with all modules
Also because we include babel-loader in the webpack.config.js rules, we added a .bablerc file which specifies
that babel should add the env and react presets (like babel bundles) to allow it to compile ES6 and react into
Also note that we've included a 'devtool' entry in webpack.configs.js, this provides a source map that help the
browser figure out where the error was in the source file rather than just the compiled javascript file
Also note we've included configuration for the devServer in webpack.configs.js, this doesn't create the bundle.js file on disk, it creates it and updates it in memory while serving. To create the bundle.js file on disk run ...
yarn run build