xiaoxian521 3 years ago
parent
commit
45743a7c74
  1. 2
      build/plugins.ts
  2. 4
      package.json
  3. 724
      pnpm-lock.yaml
  4. 2
      src/layout/components/setting/index.vue
  5. 2
      vite.config.ts

2
build/plugins.ts

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

4
package.json

@ -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",

724
pnpm-lock.yaml
File diff suppressed because it is too large
View File

2
src/layout/components/setting/index.vue

@ -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";

2
vite.config.ts

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

Loading…
Cancel
Save