ソースを参照

第三方库优化

zhengnaiwen_citu 3 ヶ月 前
コミット
92c4eafed3
1 ファイル変更6 行追加2 行削除
  1. 6 2
      vue.config.js

+ 6 - 2
vue.config.js

@@ -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',