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:
Andreas Koutsoukos 2021-12-03 16:39:37 +02:00 committed by GitHub
parent 4f546173b4
commit a7a5546429
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,11 +129,9 @@ Its recommended to only use this in scenarios where a `<link>` tag wont 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")
],
};
```