chore: TerserPlugin 添加 parallel 支持

This commit is contained in:
hz
2025-11-03 09:07:00 +08:00
parent 0befa69044
commit 64a44ee2e0

View File

@@ -31,6 +31,7 @@ module.exports = {
} }
} }
}, },
chainWebpack: config => { chainWebpack: config => {
const { codeInspectorPlugin } = require('code-inspector-plugin') const { codeInspectorPlugin } = require('code-inspector-plugin')
@@ -59,6 +60,7 @@ module.exports = {
config.optimization = { config.optimization = {
minimizer: [ minimizer: [
new TerserPlugin({ new TerserPlugin({
parallel: true,
terserOptions: { terserOptions: {
output: { output: {
comments: false comments: false