A simple WebPack config with devServer enabled, hot reloading, and using React.
npm start
to start dev server.- Open browser to http://localhost:3000/
- Browser will reload when changes to files within ./src/ are made.
npm run build
to build production version of app.- Add the script tag to ./public/index.html with the path to the new production JavaScript.
npm run prod
to start production server.- Open browser to http://localhost:8080 to view page.