fixed production mode

This commit is contained in:
lotte
2018-08-31 16:13:25 +02:00
parent f11d486d14
commit 75a3985474
2 changed files with 2 additions and 3 deletions

View File

@@ -27,8 +27,7 @@ module.exports = function(env, options) {
getAotPlugin('client', !!env.aot) getAotPlugin('client', !!env.aot)
] ]
}); });
if (env.production) {
if (options.mode === 'production') {
serverConfig = webpackMerge({}, serverConfig, prodPartial); serverConfig = webpackMerge({}, serverConfig, prodPartial);
clientConfig = webpackMerge({}, clientConfig, prodPartial); clientConfig = webpackMerge({}, clientConfig, prodPartial);
} }

View File

@@ -42,7 +42,7 @@ module.exports = {
], ],
optimization: { optimization: {
minimize: [ minimizer: [
new UglifyJsPlugin({ new UglifyJsPlugin({
uglifyOptions: { uglifyOptions: {
beautify: false, beautify: false,