|
@@ -10,7 +10,7 @@ const pathResolve = (dir: string): any => {
|
|
|
const alias: Record<string, string> = {
|
|
|
'/@': pathResolve('./src/'),
|
|
|
};
|
|
|
-const viteConfig = defineConfig((mode: ConfigEnv) => {
|
|
|
+export default defineConfig((mode: ConfigEnv) => {
|
|
|
const env = loadEnv(mode.mode, process.cwd());
|
|
|
return {
|
|
|
plugins: [
|
|
@@ -54,4 +54,3 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
|
|
|
css: { preprocessorOptions: { css: { charset: false } } }
|
|
|
};
|
|
|
});
|
|
|
-export default viteConfig;
|