Skip to content

Commit

Permalink
chore: 更新 unocss 版本及配置 (#3326)
Browse files Browse the repository at this point in the history
* chore: 升级 unocss 版本 添加 unocss.config.ts 配置文件

* chore: 更新 unocss 插件
  • Loading branch information
xingyuv authored Nov 23, 2023
1 parent 4305f58 commit 7191ebc
Show file tree
Hide file tree
Showing 6 changed files with 493 additions and 150 deletions.
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"mrmlnc.vscode-less",
"lokalise.i18n-ally",
"antfu.iconify",
"antfu.unocss",
"mikestead.dotenv",
"heybourn.headwind",
"vue.vscode-typescript-vue-plugin"
]
}
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,11 @@
"stylelint",
"tailwindcss",
"tinymce",
"unocss",
"unref",
"vben",
"vditor",
"Vite",
"vitejs",
"vueuse",
"zxcvbn"
Expand Down
2 changes: 1 addition & 1 deletion internal/vite-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 1 addition & 6 deletions internal/vite-config/src/config/common.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { presetTypography, presetUno } from 'unocss';
import UnoCSS from 'unocss/vite';
import { type UserConfig } from 'vite';

Expand All @@ -17,11 +16,7 @@ const commonConfig: (mode: string) => UserConfig = (mode) => ({
maxParallelFileOps: 3,
},
},
plugins: [
UnoCSS({
presets: [presetUno(), presetTypography()],
}),
],
plugins: [UnoCSS()],
});

export { commonConfig };
Loading

0 comments on commit 7191ebc

Please sign in to comment.