Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(cn): plugins/transform translation #31

Merged
merged 1 commit into from
May 31, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions plugins/transform.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Transform API
# Transform API {#transform-api}

For tailwind plugins, we generally use Transform API to support them. You can import them to your config like below:
对于 Tailwind 的插件,我们通常使用 Transform API 来支持。你可以像下面这样将它们引入你的配置文件:

```js
// windi.config.js
Expand All @@ -12,7 +12,7 @@ export default {
// ...
},
plugins: [
transform('plugin-name'), // replace require with transform
transform('plugin-name'), // require 替换成 transform
],
}
```
Expand Down