Skip to content

Commit 9256436

Browse files
committed
chore: Add UnoCSS for easier CSS styling (easy-temps#45)
1 parent 04e056c commit 9256436

File tree

11 files changed

+480
-10
lines changed

11 files changed

+480
-10
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ English / [简体中文](./README-zh_CN.md) , [使用指南](./Guide-zh_CN.md) /
3232
- 🌈 Support Git hooks (lint and commit)
3333
- 💖 Mobile UI Components (Vant4)
3434
- 🍍 Pinia, Store for Vue
35+
- 🪶 Support Unocss and Less
3536

3637
## Install and use
3738

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"dev": "cross-env MOCK_SERVER_PORT=8086 vite",
99
"build": "vue-tsc --noEmit && vite build",
1010
"build:dev": "vue-tsc --noEmit && vite build --mode=development",
11+
"preview": "npm run build && vite preview",
1112
"lint": "eslint .",
1213
"lint:fix": "eslint . --fix",
13-
"preview": "vite preview",
1414
"test": "vitest",
1515
"plop": "plop",
1616
"prepare": "npx husky install"
@@ -42,6 +42,7 @@
4242
"@types/node": "^20.9.0",
4343
"@types/nprogress": "^0.2.3",
4444
"@types/store": "^2.0.5",
45+
"@unocss/preset-rem-to-px": "^0.57.3",
4546
"@vitejs/plugin-legacy": "^4.1.1",
4647
"@vitejs/plugin-vue": "^4.4.0",
4748
"@vitejs/plugin-vue-jsx": "^3.0.2",
@@ -64,6 +65,7 @@
6465
"slash2": "^2.0.0",
6566
"terser": "^5.24.0",
6667
"typescript": "^5.2.2",
68+
"unocss": "^0.57.3",
6769
"unplugin-auto-import": "^0.16.7",
6870
"unplugin-vue-components": "^0.25.2",
6971
"vite": "^4.5.0",
@@ -75,7 +77,10 @@
7577
"peerDependencyRules": {
7678
"ignoreMissing": [
7779
"postcss"
78-
]
80+
],
81+
"allowedVersions": {
82+
"rollup": "^4.x"
83+
}
7984
}
8085
},
8186
"config": {

0 commit comments

Comments
 (0)