This commit is contained in:
syuilo 2018-03-15 19:53:46 +09:00
parent f02fcd0e2a
commit 1439c3245b
22 changed files with 446 additions and 101 deletions

View file

@ -243,8 +243,12 @@ module.exports = entries.map(x => {
cache: true,
devtool: 'source-map',
optimization: {
minimize: doMinify
minimize: isProduction && doMinify
},
mode: doMinify ? 'production' : 'development'
mode: isProduction
? doMinify
? 'production'
: 'development'
: 'development'
};
});