resolved PR feedback

This commit is contained in:
lotte
2018-11-20 15:53:40 +01:00
parent 54dad64ab4
commit 5cbe8ffb88
5 changed files with 33 additions and 46 deletions

View File

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