mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-14 19:26:43 +08:00
chore: TerserPlugin 添加 parallel 支持
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user