Fix webpack.config.js for production build. Closes #2