Update styling.md (#2084)
I found that the require is better way to import postcss plugins: https://github.com/postcss/postcss-load-config/issues/192
This commit is contained in:
parent
4f546173b4
commit
a7a5546429
1 changed files with 6 additions and 8 deletions
|
@ -129,11 +129,9 @@ It’s recommended to only use this in scenarios where a `<link>` tag won’t wo
|
|||
```js
|
||||
// postcss.config.cjs
|
||||
module.exports = {
|
||||
plugins: {
|
||||
autoprefixer: {
|
||||
/* (optional) autoprefixer settings */
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
require("autoprefixer")
|
||||
],
|
||||
};
|
||||
```
|
||||
|
||||
|
@ -224,9 +222,9 @@ module.exports = {
|
|||
```js
|
||||
// postcss.config.cjs
|
||||
module.exports = {
|
||||
plugins: {
|
||||
tailwindcss: {},
|
||||
},
|
||||
plugins: [
|
||||
require("tailwindcss")
|
||||
],
|
||||
};
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue