Qukatie hace 1 año
padre
commit
cad600370e
Se han modificado 1 ficheros con 15 adiciones y 15 borrados
  1. 15 15
      vue.config.js

+ 15 - 15
vue.config.js

@@ -8,19 +8,19 @@ module.exports = {
       'AMap': 'AMap' // 高德地图JS API
     },
     // 启用gzip
-    plugins: [
-      new CompressionWebpackPlugin({
-        algorithm: 'gzip',
-        test: new RegExp('\\.(' + productionGzipExtensions.join('|') + ')$'),
-        threshold: 10240,
-        minRatio: 0.8,
-        deleteOriginalAssets: false // 是否删除源文件
-      }),
-      new webpack.optimize.LimitChunkCountPlugin({
-        maxChunks: 5,
-        minChunkSize: 100
-      })
-    ]
+    // plugins: [
+    //   new CompressionWebpackPlugin({
+    //     algorithm: 'gzip',
+    //     test: new RegExp('\\.(' + productionGzipExtensions.join('|') + ')$'),
+    //     threshold: 10240,
+    //     minRatio: 0.8,
+    //     deleteOriginalAssets: false // 是否删除源文件
+    //   }),
+    //   new webpack.optimize.LimitChunkCountPlugin({
+    //     maxChunks: 5,
+    //     minChunkSize: 100
+    //   })
+    // ]
     // 启用gzip
   },
   //路径前缀
@@ -51,10 +51,10 @@ module.exports = {
       '/api': {
         //本地服务接口地址
         // target: 'http://192.168.3.64:1080',
-        // target: 'http://192.168.8.106:1080',
+        target: 'http://192.168.8.106:1080',
         // target: 'http://127.0.0.1:1080',
         // 打包地址
-        target: 'http://121.37.83.47:10004',//服务器ip
+        // target: 'http://121.37.83.47:10004',//服务器ip
         // target: 'http://192.168.161.11:10004',//服务器ip
         // target: 'http://trade.tubaosoft.com:10004',//服务器域名
         ws: true,