From c7f3fd5215399b37d0511b3bd555150ff1b13507 Mon Sep 17 00:00:00 2001 From: charles <981744753@qq.com> Date: 星期一, 29 四月 2024 10:39:30 +0800 Subject: [PATCH] fix:回退原先版本 --- vite.config.ts | 63 +++++++++++++++++-------------- 1 files changed, 35 insertions(+), 28 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 6c9c574..a543377 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -14,11 +14,19 @@ // https://vitejs.dev/config/ export default defineConfig({ + base:'./', server: { proxy: { - '/v1/': { - // http://192.168.20.119:8003 - target: 'http://192.168.20.25:7010', + '/api-s/': { + // http://192.168.20.119:8003 http://192.168.20.25:7010 + //target: 'http://192.168.20.119:9081', + target:'http://pad.fai365.com', + ws: true, + changeOrigin: true + }, + '/api': { + // http://192.168.20.119:8003 http://192.168.20.25:7010 + target:'http://pad.fai365.com', ws: true, changeOrigin: true } @@ -27,27 +35,26 @@ resolve: { alias: { '@': pathSrc - }, - }, - - build: { - minify:'terser', - // ,'edge90','firefox90','safari15' - target:['chrome52'], - cssTarget:["chrome52"], - }, - css:{ - postcss:{ - plugins:[ - require('postcss-pxtorem')({ - // ipad:1280-800 - rootValue:160.0, //鎹㈢畻鐨勫熀鏁帮紝 灞忓箷瀹藉害/10 - propList:['*'],//闇�瑕佽浆鍖栫殑灞炴�э紝*琛ㄧず鎵�鏈夊睘鎬ч兘闇�瑕佽浆鍖� - // unitPrecision:5 - }) - ] } + }, + build: { + minify: 'terser', + // ,'edge90','firefox90','safari15' + target: ['chrome52'], + cssTarget: ['chrome52'] + }, + css: { + postcss: { + plugins: [ + require('postcss-pxtorem')({ + // ipad:1280-800 + rootValue: 160.0, //鎹㈢畻鐨勫熀鏁帮紝 灞忓箷瀹藉害/10 + propList: ['*'] //闇�瑕佽浆鍖栫殑灞炴�э紝*琛ㄧず鎵�鏈夊睘鎬ч兘闇�瑕佽浆鍖� + // unitPrecision:5 + }) + ] + } }, plugins: [ vue(), @@ -68,10 +75,10 @@ }), // 寮�鍙戠幆澧冨吋瀹� esbuild({ - target:"chrome64", - loaders:{ - ".vue":'js', - ".ts":'js' + target: 'chrome64', + loaders: { + '.vue': 'js', + '.ts': 'js' } }), // 鍏煎浣庣増鏈祻瑙堝櫒 @@ -113,8 +120,8 @@ }), Icons({ autoInstall: true - }), - ], + }) + ] // configureWebpack:config=>{ // config.entry.app=['babel-polyfill','./src/main.js'] // }, -- Gitblit v1.8.0