Skip to content

Commit

Permalink
U 修复高版本 unocss 的 preflights 导致小程序样式无法编译通过的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zcf0508 committed Jun 17, 2022
1 parent 08b02b0 commit 798e1ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -69,7 +69,7 @@
"eslint-plugin-vue": "^7.16.0",
"prettier": "^2.3.2",
"typescript": "^4.7.3",
"unocss": "0.32.12",
"unocss": "^0.39.0",
"unplugin-auto-import": "^0.8.7",
"unplugin-vue-components": "^0.19.6",
"vite": "^2.9.9",
Expand Down
5 changes: 4 additions & 1 deletion unocss.config.ts
Expand Up @@ -3,7 +3,10 @@ import { unocssToUniProcess } from "vite-plugin-unocss-to-uni";

export default defineConfig({
presets: [
presetUno(),
{
...presetUno(),
preflights: undefined,
},
presetIcons({
// 其他选项
prefix: "i-",
Expand Down

0 comments on commit 798e1ac

Please sign in to comment.