zhanghua
2024-01-21 e1aa0ecffbabd618c71e4ad94370fb8dffe6ee1c
vue.config.js
@@ -38,12 +38,11 @@
    },
    proxy: {
      // 跨域配置
      "/api": {
        target: `http://42.193.1.25:8082`,
        changeOrigin: true,
        pathRewrite: {
          "^/api": ''
        }
      "/sccg": {
        // target: `http://42.193.1.25/`,      //测试环境
        // target: `http://111.1.140.92:28081/`,
        target: `http://10.88.10.18:8082/`,
        changeOrigin: true
      }
    },
    // disableHostCheck: true
@@ -97,14 +96,6 @@
    config
      .when(process.env.NODE_ENV !== 'development',
        config => {
          // config
          //   .plugin('ScriptExtHtmlWebpackPlugin')
          //   .after('html')
          //   .use('script-ext-html-webpack-plugin', [{
          //   // `runtime` must same as runtimeChunk name. default is `runtime`
          //     inline: /runtime\..*\.js$/
          //   }])
          //   .end()
          config
            .optimization.splitChunks({
              chunks: 'all',