Commit 68d82685 authored by gxkai's avatar gxkai

build: 加入打包压缩

parent 40920fe0
......@@ -38,15 +38,15 @@ module.exports = config => {
deleteOriginalAssets: false // 删除原文件true=删
}))
return {
...webpackConfig,
...webpackConfig
// mode: 'production',
// devtool: 'nosources-cheap-module-source-map',
optimization: {
minimize: true,
minimizer: [new TerserPlugin({
parallel: false
})]
}
// optimization: {
// minimize: true,
// minimizer: [new TerserPlugin({
// parallel: false
// })]
// }
}
} else {
return webpackConfig
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment