view live on link
npm i -g cross-env
Ensure npm scripts work properly across Linux, Windows, and all environments.
npm install
develop environment, run webpack dev server
npm start
This will get the files running on http://localhost:8080 Webpack will watch for changes and update the browser when file changes.
production environment, run webpack
npm run build
The minified JS bundle files including the output html file will be store in dist directory.