diff options
author | 2021-12-03 16:39:37 +0200 | |
---|---|---|
committer | 2021-12-03 09:39:37 -0500 | |
commit | a7a5546429ca2b12c17a87026c9d9418d42c8815 (patch) | |
tree | b7ea74ba9e26346d105369edb6953baa9441d74c /docs/src/pages/guides/styling.md | |
parent | 4f546173b484a8329c306e1a5261c91c8511042d (diff) | |
download | astro-a7a5546429ca2b12c17a87026c9d9418d42c8815.tar.gz astro-a7a5546429ca2b12c17a87026c9d9418d42c8815.tar.zst astro-a7a5546429ca2b12c17a87026c9d9418d42c8815.zip |
Update styling.md (#2084)astro@0.21.9
I found that the require is better way to import postcss plugins: https://github.com/postcss/postcss-load-config/issues/192
Diffstat (limited to 'docs/src/pages/guides/styling.md')
-rw-r--r-- | docs/src/pages/guides/styling.md | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/docs/src/pages/guides/styling.md b/docs/src/pages/guides/styling.md index 9e5e3bf88..db486e3ee 100644 --- a/docs/src/pages/guides/styling.md +++ b/docs/src/pages/guides/styling.md @@ -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") + ], }; ``` |