diff options
Diffstat (limited to 'webpack/webpack.prod.js')
-rw-r--r-- | webpack/webpack.prod.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/webpack/webpack.prod.js b/webpack/webpack.prod.js index daa65f51..65be616f 100644 --- a/webpack/webpack.prod.js +++ b/webpack/webpack.prod.js @@ -1,6 +1,11 @@ const merge = require('webpack-merge'); const common = require('./webpack.common.js'); -module.exports = merge(common, { - mode: 'production' -});
\ No newline at end of file +module.exports = env => { + let mode = "production"; + env.mode = mode; + + return merge(common(env), { + mode + }); +};
\ No newline at end of file |