Commit 75a7df42 authored by morning's avatar morning Committed by hetech

chore: use sourcemap in dev environment (#15087)

parent b4190041
...@@ -123,7 +123,8 @@ const webpackConfig = { ...@@ -123,7 +123,8 @@ const webpackConfig = {
], ],
optimization: { optimization: {
minimizer: [] minimizer: []
} },
devtool: '#eval-source-map'
}; };
if (isProd) { if (isProd) {
...@@ -145,6 +146,7 @@ if (isProd) { ...@@ -145,6 +146,7 @@ if (isProd) {
}), }),
new OptimizeCSSAssetsPlugin({}) new OptimizeCSSAssetsPlugin({})
); );
webpackConfig.devtool = false;
} }
module.exports = webpackConfig; module.exports = webpackConfig;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment