Skip to content

Commit 0beb7ed

Browse files
committed
[#1687] Update webpack config to emit sourcemaps
1 parent 79ae566 commit 0beb7ed

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

webpack/config.prod.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,11 @@ module.exports = [{
141141
]
142142
},
143143
optimization: {
144-
minimizer: [new TerserJSPlugin({}), new OptimizeCSSAssetsPlugin({})],
144+
minimize: true,
145+
minimizer: [new TerserJSPlugin({
146+
sourceMap: true,
147+
parallel: true
148+
}), new OptimizeCSSAssetsPlugin()],
145149
},
146150
plugins: [
147151
new ManifestPlugin({
@@ -165,6 +169,7 @@ module.exports = [{
165169
]
166170
},
167171
target: 'web',
172+
devtool: 'source-map',
168173
mode: 'production',
169174
output: {
170175
path: path.resolve(__dirname, '../dist/static'),
@@ -189,5 +194,12 @@ module.exports = [{
189194
}
190195
}
191196
]
192-
}
197+
},
198+
optimization: {
199+
minimize: true,
200+
minimizer: [new TerserJSPlugin({
201+
sourceMap: true,
202+
parallel: true
203+
})],
204+
},
193205
}];

0 commit comments

Comments
 (0)