Skip to content

Commit e08626d

Browse files
authored
refactor: 升级tailwindcssv4版本,带来更快的构建速度、更简化的安装和配置、提供专属vite插件 (#1203)
1 parent 583feae commit e08626d

File tree

107 files changed

+2309
-2182
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+2309
-2182
lines changed

Diff for: build/plugins.ts

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import svgLoader from "vite-svg-loader";
66
import Icons from "unplugin-icons/vite";
77
import type { PluginOption } from "vite";
88
import vueJsx from "@vitejs/plugin-vue-jsx";
9+
import tailwindcss from "@tailwindcss/vite";
910
import { configCompressPlugin } from "./compress";
1011
import removeNoMatch from "vite-plugin-router-warn";
1112
import { visualizer } from "rollup-plugin-visualizer";
@@ -20,6 +21,7 @@ export function getPluginsList(
2021
): PluginOption[] {
2122
const lifecycle = process.env.npm_lifecycle_event;
2223
return [
24+
tailwindcss(),
2325
vue({
2426
template: {
2527
compilerOptions: {

Diff for: package.json

+33-33
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,22 @@
5757
"@pureadmin/utils": "^2.6.0",
5858
"@vue-flow/background": "^1.3.2",
5959
"@vue-flow/core": "^1.42.5",
60-
"@vueuse/core": "^12.5.0",
61-
"@vueuse/motion": "^2.2.6",
60+
"@vueuse/core": "^13.1.0",
61+
"@vueuse/motion": "^3.0.3",
6262
"@wangeditor/editor": "^5.1.23",
6363
"@wangeditor/editor-for-vue": "^5.1.12",
6464
"@zxcvbn-ts/core": "^3.0.4",
6565
"animate.css": "^4.1.1",
66-
"axios": "^1.7.9",
66+
"axios": "^1.8.4",
6767
"china-area-data": "^5.0.1",
68-
"codemirror": "^5.65.18",
68+
"codemirror": "^5.65.19",
6969
"codemirror-editor-vue3": "^2.8.0",
7070
"cropperjs": "^1.6.2",
7171
"dayjs": "^1.11.13",
7272
"deep-chat": "^2.1.1",
7373
"echarts": "^5.6.0",
7474
"el-table-infinite-scroll": "^3.0.6",
75-
"element-plus": "^2.9.4",
75+
"element-plus": "^2.9.7",
7676
"highlight.js": "^11.11.1",
7777
"intro.js": "^7.2.0",
7878
"js-cookie": "^3.0.5",
@@ -85,58 +85,58 @@
8585
"path-browserify": "^1.0.1",
8686
"pinia": "^3.0.1",
8787
"pinyin-pro": "^3.26.0",
88-
"plus-pro-components": "^0.1.20",
88+
"plus-pro-components": "^0.1.22",
8989
"qrcode": "^1.5.4",
9090
"qs": "^6.14.0",
9191
"responsive-storage": "^2.2.0",
9292
"sortablejs": "^1.15.6",
93-
"swiper": "^11.2.3",
93+
"swiper": "^11.2.6",
9494
"typeit": "^8.8.7",
9595
"v-contextmenu": "^3.2.0",
9696
"v3-infinite-loading": "^1.3.2",
9797
"vditor": "^3.10.9",
9898
"version-rocket": "^1.7.4",
9999
"vue": "^3.5.13",
100-
"vue-i18n": "^11.1.1",
100+
"vue-i18n": "^11.1.3",
101101
"vue-json-pretty": "^2.4.0",
102102
"vue-pdf-embed": "^2.1.2",
103103
"vue-router": "^4.5.0",
104-
"vue-tippy": "^6.6.0",
105-
"vue-types": "^5.1.3",
104+
"vue-tippy": "^6.7.0",
105+
"vue-types": "^6.0.0",
106106
"vue-virtual-scroller": "2.0.0-beta.8",
107107
"vue-waterfall-plugin-next": "^2.6.5",
108108
"vue3-danmaku": "^1.6.1",
109109
"vue3-puzzle-vcode": "^1.1.7",
110110
"vuedraggable": "^4.1.0",
111111
"vxe-table": "4.6.25",
112-
"wavesurfer.js": "^7.9.1",
113-
"xgplayer": "^3.0.20",
112+
"wavesurfer.js": "^7.9.4",
113+
"xgplayer": "^3.0.21",
114114
"xlsx": "^0.18.5"
115115
},
116116
"devDependencies": {
117-
"@commitlint/cli": "^19.7.1",
118-
"@commitlint/config-conventional": "^19.7.1",
119-
"@commitlint/types": "^19.5.0",
117+
"@commitlint/cli": "^19.8.0",
118+
"@commitlint/config-conventional": "^19.8.0",
119+
"@commitlint/types": "^19.8.0",
120120
"@eslint/js": "^9.24.0",
121-
"@faker-js/faker": "^9.5.0",
122-
"@iconify/json": "^2.2.319",
121+
"@faker-js/faker": "^9.6.0",
122+
"@iconify/json": "^2.2.324",
123123
"@iconify/vue": "4.2.0",
124-
"@intlify/unplugin-vue-i18n": "^6.0.3",
124+
"@intlify/unplugin-vue-i18n": "^6.0.5",
125+
"@tailwindcss/vite": "^4.1.3",
125126
"@types/codemirror": "^5.60.15",
126127
"@types/dagre": "^0.7.52",
127128
"@types/intro.js": "^5.1.5",
128129
"@types/js-cookie": "^3.0.6",
129-
"@types/node": "^20.17.19",
130+
"@types/node": "^20.17.30",
130131
"@types/nprogress": "^0.2.3",
131132
"@types/path-browserify": "^1.0.3",
132133
"@types/qrcode": "^1.5.5",
133134
"@types/qs": "^6.9.18",
134135
"@types/sortablejs": "^1.15.8",
135-
"@vitejs/plugin-vue": "^5.2.1",
136-
"@vitejs/plugin-vue-jsx": "^4.1.1",
137-
"autoprefixer": "^10.4.20",
136+
"@vitejs/plugin-vue": "^5.2.3",
137+
"@vitejs/plugin-vue-jsx": "^4.1.2",
138138
"boxen": "^8.0.1",
139-
"code-inspector-plugin": "^0.20.0",
139+
"code-inspector-plugin": "^0.20.7",
140140
"cssnano": "^7.0.6",
141141
"dagre": "^0.8.5",
142142
"eslint": "^9.24.0",
@@ -145,34 +145,34 @@
145145
"eslint-plugin-vue": "^10.0.0",
146146
"gradient-string": "^3.0.0",
147147
"husky": "^9.1.7",
148-
"lint-staged": "^15.4.3",
149-
"postcss": "^8.5.2",
148+
"lint-staged": "^15.5.0",
149+
"postcss": "^8.5.3",
150150
"postcss-html": "^1.8.0",
151-
"postcss-import": "^16.1.0",
151+
"postcss-load-config": "^6.0.1",
152152
"postcss-scss": "^4.0.9",
153-
"prettier": "^3.5.1",
153+
"prettier": "^3.5.3",
154154
"rimraf": "^6.0.1",
155155
"rollup-plugin-visualizer": "^5.14.0",
156-
"sass": "^1.85.0",
157-
"stylelint": "^16.14.1",
156+
"sass": "^1.86.3",
157+
"stylelint": "^16.18.0",
158158
"stylelint-config-recess-order": "^6.0.0",
159159
"stylelint-config-recommended-vue": "^1.6.0",
160160
"stylelint-config-standard-scss": "^14.0.0",
161161
"stylelint-prettier": "^5.0.3",
162162
"svgo": "^3.3.2",
163-
"tailwindcss": "3.4.17",
164-
"typescript": "^5.7.3",
163+
"tailwindcss": "^4.1.3",
164+
"typescript": "^5.8.3",
165165
"typescript-eslint": "^8.29.1",
166166
"unplugin-icons": "^22.1.0",
167-
"vite": "^6.1.0",
167+
"vite": "^6.2.5",
168168
"vite-plugin-cdn-import": "^1.0.1",
169169
"vite-plugin-compression": "^0.5.1",
170170
"vite-plugin-fake-server": "^2.2.0",
171171
"vite-plugin-remove-console": "^2.2.0",
172172
"vite-plugin-router-warn": "^1.0.0",
173173
"vite-svg-loader": "^5.1.0",
174174
"vue-eslint-parser": "^10.1.3",
175-
"vue-tsc": "^2.2.0"
175+
"vue-tsc": "^2.2.8"
176176
},
177177
"engines": {
178178
"node": "^18.18.0 || ^20.9.0 || >=22.0.0",

0 commit comments

Comments
 (0)