GuLiMmo
2023-12-27 bd2a27cae9beb7d174d0b1fcce6dc42921ed1c53
打包包名修改
1 files modified
8 ■■■■ changed files
vite.config.js 8 ●●●● patch | view | raw | blame | history
vite.config.js
@@ -12,8 +12,9 @@
      port: 2888,
      proxy: {
        '/api': {
          target: 'http://192.168.1.88:2888/api',
          //target: 'https://saber3.bladex.cn/api',
          target: 'http://localhost',
          //  target: 'https://132v69t077.yicp.fun/api',
          //  target: 'https://saber3.bladex.cn/api',
          changeOrigin: true,
          rewrite: path => path.replace(/^\/api/, ''),
        },
@@ -28,6 +29,9 @@
        utils: resolve(__dirname, './src/utils'),
      },
    },
    build: {
      outDir: 'zttj-web',
    },
    plugins: createVitePlugins(env, command === 'build'),
  });
};