fix: vite去掉代理引入

This commit is contained in:
fonghehe 2022-08-17 18:18:11 +08:00
parent c81d96306e
commit bb6008b6f3
3 changed files with 2 additions and 4 deletions

View File

@ -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",

View File

@ -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: {

View File

@ -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==