Fix setting production environment for Webpack builds

[MAILPOET-1644]
This commit is contained in:
Jan Jakeš
2018-11-30 15:28:31 +01:00
parent 567b5f8964
commit a44148954c

View File

@@ -345,7 +345,10 @@ module.exports = _.map([adminConfig, publicConfig, migratorConfig, testConfig],
config.plugins.push(
new webpackUglifyJsPlugin({
mangle: false,
})
}),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
}),
);
}
config.plugins.push(