chore: 更新 unocss 版本及配置 (#3326)

* chore: 升级 unocss 版本 添加 unocss.config.ts 配置文件

* chore: 更新 unocss 插件
This commit is contained in:
xingyu 2023-11-23 17:40:49 +08:00 committed by GitHub
parent 4305f58d20
commit 7191ebc122
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 505 additions and 162 deletions

View File

@ -7,8 +7,8 @@
"mrmlnc.vscode-less",
"lokalise.i18n-ally",
"antfu.iconify",
"antfu.unocss",
"mikestead.dotenv",
"heybourn.headwind",
"vue.vscode-typescript-vue-plugin"
]
}

View File

@ -128,9 +128,11 @@
"stylelint",
"tailwindcss",
"tinymce",
"unocss",
"unref",
"vben",
"vditor",
"Vite",
"vitejs",
"vueuse",
"zxcvbn"

View File

@ -47,7 +47,7 @@
"pkg-types": "^1.0.3",
"rollup-plugin-visualizer": "^5.9.2",
"sass": "^1.63.6",
"unocss": "^0.53.4",
"unocss": "^0.57.7",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-dts": "^3.1.0",
"vite-plugin-html": "^3.2.0",

View File

@ -1,4 +1,3 @@
import { presetTypography, presetUno } from 'unocss';
import UnoCSS from 'unocss/vite';
import { type UserConfig } from 'vite';
@ -17,11 +16,7 @@ const commonConfig: (mode: string) => UserConfig = (mode) => ({
maxParallelFileOps: 3,
},
},
plugins: [
UnoCSS({
presets: [presetUno(), presetTypography()],
}),
],
plugins: [UnoCSS()],
});
export { commonConfig };

649
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

5
uno.config.ts Normal file
View File

@ -0,0 +1,5 @@
import { defineConfig, presetTypography, presetUno } from 'unocss';
export default defineConfig({
presets: [presetUno(), presetTypography()],
});