diff --git a/vite.config.ts b/vite.config.ts index 8f44b95..b29dd40 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,9 +1,9 @@ -import { type UserConfig, type ConfigEnv, loadEnv, defineConfig } from 'vite'; +import { defineConfig, loadEnv } from 'vite'; import createPlugins from './vite/plugins'; import autoprefixer from 'autoprefixer'; // css自动添加兼容性前缀 - import path from 'path'; -export default defineConfig(({ mode, command }: ConfigEnv): UserConfig => { + +export default defineConfig(({ mode, command }) => { const env = loadEnv(mode, process.cwd()); return { // 部署生产环境和开发环境下的URL。