(优化):
This commit is contained in:
+4
-4
@@ -7,9 +7,9 @@ module.exports = {
|
||||
CURRENT_BASE_URL: '"https://www.zzfzyc.com/lymarket"',
|
||||
},
|
||||
mini: {
|
||||
optimizeMainPackage: {
|
||||
enable: true,
|
||||
},
|
||||
// optimizeMainPackage: {
|
||||
// enable: true,
|
||||
// },
|
||||
webpackChain: (chain, webpack) => {
|
||||
chain.merge({
|
||||
plugin: {
|
||||
@@ -18,7 +18,7 @@ module.exports = {
|
||||
args: [
|
||||
{
|
||||
terserOptions: {
|
||||
// compress: true, // 默认使用terser压缩
|
||||
compress: true, // 默认使用terser压缩
|
||||
compress: {
|
||||
drop_console: true, // 去掉打印
|
||||
}, // 默认使用terser压缩
|
||||
|
||||
Reference in New Issue
Block a user