yxh
2026-09-27 c314661d7353b58f926aa5a99abfc40313638521
vite.config.ts
@@ -30,10 +30,8 @@
      open: env.VITE_OPEN === 'true',
      // 本地跨域代理. 目前注释的原因:暂时没有用途,server 端已经支持跨域
      proxy: {
        ['/admin-api']: {
          // target: 'http://192.168.100.120:48080',
          target: 'http://localhost:8095',
          // target: 'http://192.168.100.141:48080',
        ['/admin-api']:{
          target: 'http://localhost:48080',
          ws: false,
          changeOrigin: true,
          // rewrite: (path) => path.replace(new RegExp(`^/admin-api`), ''),
@@ -41,7 +39,8 @@
      },
    },
    // 项目使用的vite插件。 单独提取到build/vite/plugin中管理
    plugins: createVitePlugins(),
    // 传入 mode,便于插件按环境开关(例如合并部署时关闭 .gz 产出)
    plugins: createVitePlugins(mode),
    css: {
      preprocessorOptions: {
        scss: {