You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> ⚠️ Using this package is **discouraged** as there are some limitations of PostCSS's API. Use our [first-class integrations](https://windicss.org/guide/installation.html)for each dedicated framework/build tool to get **the best develop experience and performance**. This plugin should be your last option to integrate Windi CSS.
9
+
> ⚠️ 因为一些 PostCSS API 的限制,我们并**不鼓励**使用这个包。我们为每一个专用工具提供了 [最佳的适配](https://windicss.org/guide/installation.html)以获得**最佳的开发体验和性能**。这个插件应当作为你集成 Windi CSS 的最后一个选择。
10
10
11
-
## Install
11
+
## 安装 {#install}
12
12
13
-
Install `postcss-windicss` from NPM
13
+
从 NPM 安装 `postcss-windicss`
14
14
15
15
```bash
16
16
npm i -D postcss-windicss
17
17
```
18
18
19
-
Create`postcss.config.js` under your project root
19
+
在你的项目根目录下创建`postcss.config.js`
20
20
21
21
```js
22
22
// postcss.config.js
@@ -27,14 +27,14 @@ module.exports = {
27
27
}
28
28
```
29
29
30
-
Add`@windicss`to your main css entry:
30
+
将`@windicss`添加到你的 CSS 入口:
31
31
32
32
```css
33
33
/* main.css */
34
34
@windicss;
35
35
```
36
36
37
-
Create`windi.config.js` / `windi.config.ts`under your project root with this configurations
0 commit comments