perf: Refactor vite configuration

This commit is contained in:
vben
2023-04-05 00:20:48 +08:00
parent 5e4be0adbc
commit 5e99463cd0
68 changed files with 2437 additions and 3985 deletions

View File

@@ -1,7 +1,6 @@
import { defineConfig } from 'vite-plugin-windicss';
import { primaryColor } from './build/config/themeConfig';
const primaryColor = '#0960bd';
export default defineConfig({
export default {
darkMode: 'class',
plugins: [createEnterPlugin()],
theme: {
@@ -21,7 +20,7 @@ export default defineConfig({
},
},
},
});
};
/**
* Used for animation when the element is displayed.