summaryrefslogtreecommitdiffstats
path: root/core/webpack.prod.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/webpack.prod.js')
-rw-r--r--core/webpack.prod.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/webpack.prod.js b/core/webpack.prod.js
index 7e633710ba6..7cf446b9be5 100644
--- a/core/webpack.prod.js
+++ b/core/webpack.prod.js
@@ -1,7 +1,9 @@
const merge = require('webpack-merge')
const common = require('./webpack.common.js')
-module.exports = merge(common, {
- mode: 'production',
- devtool: '#source-map'
-})
+module.exports = common.map(
+ config => merge(config, {
+ mode: 'production',
+ devtool: '#source-map',
+ })
+)