mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
refactor: remove extendedConfig.devtool check
This commit is contained in:
parent
8d728da3c7
commit
28300ee0f9
@ -408,7 +408,7 @@ export default class WebpackBaseConfig {
|
||||
if (optimization && optimization.minimizer && extendedConfig.devtool) {
|
||||
const terser = optimization.minimizer.find(p => p instanceof TerserWebpackPlugin)
|
||||
if (terser) {
|
||||
terser.options.sourceMap = extendedConfig.devtool && /source-?map/.test(extendedConfig.devtool)
|
||||
terser.options.sourceMap = /source-?map/.test(extendedConfig.devtool)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user