mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 03:07:36 +08:00
chore: use sourcemap in dev environment (#15087)
This commit is contained in:
parent
b419004199
commit
75a7df42e1
@ -123,7 +123,8 @@ const webpackConfig = {
|
||||
],
|
||||
optimization: {
|
||||
minimizer: []
|
||||
}
|
||||
},
|
||||
devtool: '#eval-source-map'
|
||||
};
|
||||
|
||||
if (isProd) {
|
||||
@ -145,6 +146,7 @@ if (isProd) {
|
||||
}),
|
||||
new OptimizeCSSAssetsPlugin({})
|
||||
);
|
||||
webpackConfig.devtool = false;
|
||||
}
|
||||
|
||||
module.exports = webpackConfig;
|
||||
|
Loading…
Reference in New Issue
Block a user