Commit 68d82685 authored by gxkai's avatar gxkai

build: 加入打包压缩

parent 40920fe0
...@@ -38,15 +38,15 @@ module.exports = config => { ...@@ -38,15 +38,15 @@ module.exports = config => {
deleteOriginalAssets: false // 删除原文件true=删 deleteOriginalAssets: false // 删除原文件true=删
})) }))
return { return {
...webpackConfig, ...webpackConfig
// mode: 'production', // mode: 'production',
// devtool: 'nosources-cheap-module-source-map', // devtool: 'nosources-cheap-module-source-map',
optimization: { // optimization: {
minimize: true, // minimize: true,
minimizer: [new TerserPlugin({ // minimizer: [new TerserPlugin({
parallel: false // parallel: false
})] // })]
} // }
} }
} else { } else {
return webpackConfig 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