webpack-config: export NODE_ENV=production when not in debug mode

master
Will Roberts 8 years ago
parent ec25c0401b
commit 83ae3ebfab
  1. 5
      {{cookiecutter.app_name}}/webpack.config.js

@ -59,5 +59,10 @@ module.exports = {
}),
].concat(debug ? [] : [
// production webpack plugins go here
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify('production')
}
}),
])
};

Loading…
Cancel
Save