Fix setting production environment for Webpack builds
[MAILPOET-1644]
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user