From bb6008b6f3fdc27b2a0376cf355b63b112371c89 Mon Sep 17 00:00:00 2001 From: fonghehe <331002675@qq.com> Date: Wed, 17 Aug 2022 18:18:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20vite=E5=8E=BB=E6=8E=89=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E5=BC=95=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- vite.config.ts | 2 -- yarn.lock | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 48ddc9f..ea270b8 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "typescript": "^4.6.3", "unplugin-auto-import": "^0.11.1", "unplugin-vue-components": "^0.22.4", - "vite": "^3.0.8", + "vite": "^3.0.7", "vite-plugin-compression": "^0.5.1", "vite-plugin-eruda": "^1.0.1", "vite-plugin-imagemin": "^0.6.1", diff --git a/vite.config.ts b/vite.config.ts index 3668363..343b216 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,7 +1,6 @@ import { createVitePlugins } from './config/vite/plugins'; import { resolve } from 'path'; import { ConfigEnv, UserConfigExport } from 'vite'; -import proxy from './config/vite/proxy'; const pathResolve = (dir: string) => { return resolve(process.cwd(), '.', dir); @@ -34,7 +33,6 @@ export default function ({ command }: ConfigEnv): UserConfigExport { server: { host: true, hmr: true, - proxy: proxy, }, plugins: createVitePlugins(isProduction), css: { diff --git a/yarn.lock b/yarn.lock index 251faae..96f95f5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7777,7 +7777,7 @@ vite-plugin-vue-setup-extend@^0.4.0: "@vue/compiler-sfc" "^3.2.29" magic-string "^0.25.7" -vite@^3.0.8: +vite@^3.0.7: version "3.0.8" resolved "https://registry.yarnpkg.com/vite/-/vite-3.0.8.tgz#aa095ad8e3e5da46d9ec7e878f262678965d6531" integrity sha512-AOZ4eN7mrkJiOLuw8IA7piS4IdOQyQCA81GxGsAQvAZzMRi9ZwGB3TOaYsj4uLAWK46T5L4AfQ6InNGlxX30IQ==