- To run webpack in production environment,
npm run build
- To run application in development mode,
npm run dev
- To start server with Hot Module Reloading,
npm run server
- "server": "nodemon ./server/server.js",
- "dev": "NODE_ENV=development nodemon ./server/server.js & webpack-dev-server --open",
- "build": "NODE_ENV=production webpack"