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',
|
files: 'src',
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|
||||||
webpackConfig.plugins.push(
|
webpackConfig.plugins.push(
|
||||||
new StyleLintPlugin({
|
new StyleLintPlugin({
|
||||||
files: 'src/**/*.{css,scss,vue}',
|
files: 'src/**/*.{css,scss,vue}',
|
||||||
@ -24,4 +25,7 @@ webpackConfig.module.rules.push({
|
|||||||
type: 'asset/source',
|
type: 'asset/source',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
webpackConfig.devtool =
|
||||||
|
webpackConfig.mode !== 'production' ? webpackConfig.devtool : false
|
||||||
|
|
||||||
module.exports = webpackConfig
|
module.exports = webpackConfig
|
||||||
|
Loading…
Reference in New Issue
Block a user