--

set the following command in your script - "build" : "set NODE_ENV=production && webpack"

and run => npm run build

--

--