Skip to content

Commit 68eaa8a

Browse files
committed
update readme
1 parent 49acd6d commit 68eaa8a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,16 @@ Made by [Digital Creative](https://en.digitalcreative.cn/) - Digital product age
4242
//windi.config.js
4343
export default {
4444
//...
45+
prefixer: false,
4546
extract: {
4647
// 将 .mpx 文件纳入范围
4748
include: ['src/**/*.{css,html,mpx}'],
4849
// 忽略部分文件夹
4950
exclude: ['node_modules', '.git', 'dist']
51+
},
52+
corePlugins: {
53+
// 禁用掉在小程序环境中不可能用到的 plugins
54+
container: false
5055
}
5156
//...
5257
}

examples/mpx/windi.config.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ import { defineConfig } from 'windicss/helpers'
33
import plugin from 'windicss/plugin'
44

55
export default defineConfig({
6-
prefixer: false, // 是否需要自动兼容平台浏览器(不需要)
6+
prefixer: false,
77
extract: {
8-
// 扫描文件范围
98
include: ['src/**/*.{css,html,mpx}'],
10-
// 忽略扫描文件夹
119
exclude: ['node_modules', '.git', 'dist']
10+
},
11+
corePlugins: {
12+
container: false
1213
}
1314
})

0 commit comments

Comments
 (0)