mirror of
https://gitee.com/yiming_chang/vue-pure-admin.git
synced 2024-12-02 03:07:37 +08:00
feat: add @pureadmin/theme plugin
This commit is contained in:
parent
d2d324e3f0
commit
9802a0c51b
@ -12,7 +12,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;
|
||||
|
@ -77,6 +77,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",
|
||||
@ -92,7 +93,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",
|
||||
|
1110
pnpm-lock.yaml
1110
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -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";
|
||||
|
@ -89,7 +89,7 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
|
||||
"vxe-table/lib/locale/lang/zh-CN",
|
||||
"vxe-table/lib/locale/lang/en-US"
|
||||
],
|
||||
exclude: ["@zougt/vite-plugin-theme-preprocessor/dist/browser-utils"]
|
||||
exclude: ["@pureadmin/theme/dist/browser-utils"]
|
||||
},
|
||||
build: {
|
||||
sourcemap: false,
|
||||
|
Loading…
Reference in New Issue
Block a user