perf: ⚡ disable sourcemap when building in prod
This commit is contained in:
parent
46eb48e81e
commit
93b3cdbdc0
@ -13,6 +13,7 @@ webpackConfig.plugins.push(
|
||||
files: 'src',
|
||||
}),
|
||||
)
|
||||
|
||||
webpackConfig.plugins.push(
|
||||
new StyleLintPlugin({
|
||||
files: 'src/**/*.{css,scss,vue}',
|
||||
@ -24,4 +25,7 @@ webpackConfig.module.rules.push({
|
||||
type: 'asset/source',
|
||||
})
|
||||
|
||||
webpackConfig.devtool =
|
||||
webpackConfig.mode !== 'production' ? webpackConfig.devtool : false
|
||||
|
||||
module.exports = webpackConfig
|
||||
|
Loading…
Reference in New Issue
Block a user