Skip to content

Commit

Permalink
refactor: 升级vitev6版本,升级sass至最新版,重构主题写法,删除@pureadmin/theme
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxian521 committed Nov 2, 2024
1 parent fd9ad7e commit 005c140
Show file tree
Hide file tree
Showing 13 changed files with 1,126 additions and 1,749 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.17.0
v20.18.0
6 changes: 1 addition & 5 deletions build/optimize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ const include = [
* 在预构建中强制排除的依赖项
* 温馨提示:所有以 `@iconify-icons/` 开头引入的的本地图标模块,都应该加入到下面的 `exclude` 里,因为平台推荐的使用方式是哪里需要哪里引入而且都是单个的引入,不需要预构建,直接让浏览器加载就好
*/
const exclude = [
"@iconify-icons/ep",
"@iconify-icons/ri",
"@pureadmin/theme/dist/browser-utils"
];
const exclude = ["@iconify-icons/ep", "@iconify-icons/ri"];

export { include, exclude };
9 changes: 0 additions & 9 deletions build/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import { configCompressPlugin } from "./compress";
import removeNoMatch from "vite-plugin-router-warn";
import { visualizer } from "rollup-plugin-visualizer";
import removeConsole from "vite-plugin-remove-console";
import { themePreprocessorPlugin } from "@pureadmin/theme";
import VueI18nPlugin from "@intlify/unplugin-vue-i18n/vite";
import { genScssMultipleScopeVars } from "../src/layout/theme";
import { vitePluginFakeServer } from "vite-plugin-fake-server";

export function getPluginsList(
Expand Down Expand Up @@ -54,13 +52,6 @@ export function getPluginsList(
infixName: false,
enableProd: true
}),
// 自定义主题
themePreprocessorPlugin({
scss: {
multipleScopeVars: genScssMultipleScopeVars(),
extract: true
}
}),
// svg组件化支持
svgLoader(),
VITE_CDN ? cdn : null,
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"dayjs": "^1.11.13",
"echarts": "^5.5.1",
"el-table-infinite-scroll": "^3.0.6",
"element-plus": "^2.8.5",
"element-plus": "https://pkg.pr.new/element-plus/element-plus@18711",
"intro.js": "^7.2.0",
"js-cookie": "^3.0.5",
"jsbarcode": "^3.11.6",
Expand Down Expand Up @@ -113,12 +113,11 @@
"@commitlint/config-conventional": "^19.5.0",
"@commitlint/types": "^19.5.0",
"@eslint/js": "^9.12.0",
"@faker-js/faker": "^8.4.1",
"@faker-js/faker": "^9.1.0",
"@iconify-icons/ep": "^1.2.12",
"@iconify-icons/ri": "^1.2.10",
"@iconify/vue": "^4.1.2",
"@intlify/unplugin-vue-i18n": "^5.2.0",
"@pureadmin/theme": "^3.3.0",
"@types/dagre": "^0.7.52",
"@types/intro.js": "^5.1.5",
"@types/js-cookie": "^3.0.6",
Expand Down Expand Up @@ -150,7 +149,7 @@
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"rollup-plugin-visualizer": "^5.12.0",
"sass": "1.79.6",
"sass": "^1.80.5",
"stylelint": "^16.10.0",
"stylelint-config-recess-order": "^5.1.1",
"stylelint-config-recommended-vue": "^1.5.0",
Expand All @@ -159,7 +158,7 @@
"svgo": "^3.3.2",
"tailwindcss": "^3.4.13",
"typescript": "^5.6.3",
"vite": "^5.4.8",
"vite": "6.0.0-beta.7",
"vite-plugin-cdn-import": "^1.0.1",
"vite-plugin-checker": "^0.8.0",
"vite-plugin-compression": "^0.5.1",
Expand Down
Loading

0 comments on commit 005c140

Please sign in to comment.