feat: use @pureadmin/theme

This commit is contained in:
xiaoxian521 2022-03-17 15:45:11 +08:00
parent 6887d4b1b8
commit 45743a7c74
5 changed files with 357 additions and 373 deletions

View File

@ -11,7 +11,7 @@ import VueI18n from "@intlify/vite-plugin-vue-i18n";
import ElementPlus from "unplugin-element-plus/vite";
import { visualizer } from "rollup-plugin-visualizer";
import removeConsole from "vite-plugin-remove-console";
import themePreprocessorPlugin from "@zougt/vite-plugin-theme-preprocessor";
import themePreprocessorPlugin from "@pureadmin/theme";
export function getPluginsList(command, VITE_LEGACY) {
const prodMock = true;

View File

@ -44,7 +44,7 @@
"mockjs": "^1.1.0",
"nprogress": "^0.2.0",
"path": "^0.12.7",
"pinia": "^2.0.11",
"pinia": "^2.0.12",
"qs": "^6.10.2",
"resize-observer-polyfill": "^1.5.1",
"responsive-storage": "^1.0.11",
@ -63,6 +63,7 @@
"@iconify-icons/ri": "^1.1.1",
"@iconify/vue": "^3.1.4",
"@intlify/vite-plugin-vue-i18n": "^3.3.1",
"@pureadmin/theme": "^0.0.1",
"@types/element-resize-detector": "1.1.3",
"@types/js-cookie": "^3.0.1",
"@types/lodash": "^4.14.180",
@ -78,7 +79,6 @@
"@vitejs/plugin-vue-jsx": "^1.3.8",
"@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "^10.0.0",
"@zougt/vite-plugin-theme-preprocessor": "^1.4.4",
"autoprefixer": "^10.4.2",
"cross-env": "7.0.3",
"eslint": "^8.8.0",

720
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -24,7 +24,7 @@ import { useEpThemeStoreHook } from "/@/store/modules/epTheme";
import { storageLocal, storageSession } from "/@/utils/storage";
import { useMultiTagsStoreHook } from "/@/store/modules/multiTags";
import { createNewStyle, writeNewStyle } from "../../theme/element-plus";
import { toggleTheme } from "@zougt/vite-plugin-theme-preprocessor/dist/browser-utils";
import { toggleTheme } from "@pureadmin/theme/dist/browser-utils";
import dayIcon from "/@/assets/svg/day.svg?component";
import darkIcon from "/@/assets/svg/dark.svg?component";

View File

@ -87,7 +87,7 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
"element-plus/lib/locale/lang/en",
"element-plus/lib/locale/lang/zh-cn"
],
exclude: ["@zougt/vite-plugin-theme-preprocessor/dist/browser-utils"]
exclude: ["@pureadmin/theme/dist/browser-utils"]
},
build: {
sourcemap: false,