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