|
@@ -91,14 +91,16 @@ module.exports = defineConfig({
|
|
|
uglifyOptions: {
|
|
|
compress: {
|
|
|
drop_console: true,
|
|
|
+ pure_funcs: ['console.log'], // 移除 console.log
|
|
|
drop_debugger: true
|
|
|
},
|
|
|
output: {
|
|
|
- comments: false
|
|
|
+ comments: false // 移除注释
|
|
|
}
|
|
|
},
|
|
|
sourceMap: false,
|
|
|
- parallel: true
|
|
|
+ parallel: true,
|
|
|
+ ie8: true // 支持 IE8+ (也会处理 IE11 的兼容问题)
|
|
|
}))
|
|
|
}
|
|
|
},
|
|
@@ -133,6 +135,8 @@ module.exports = defineConfig({
|
|
|
'scrolling-element',
|
|
|
|
|
|
// 其他可能包含 ES6 代码的依赖
|
|
|
+ 'fs',
|
|
|
+ 'qs',
|
|
|
'axios',
|
|
|
'lodash',
|
|
|
'echarts',
|