Skip to content

Commit 1f432ca

Browse files
authored
fix(postcss): use ESM syntax for postcss.config.js (#7768)
1 parent 1919e6b commit 1f432ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/docs/src/routes/docs/integrations/postcss/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ This will create a new `postcss.config.js` file at the root of the project with
5454
- [PostCSS Preset Env](https://preset-env.cssdb.org/)
5555

5656
```ts title="postcss.config.js"
57-
module.exports = {
57+
export default {
5858
plugins: {
5959
autoprefixer: {},
6060
"postcss-preset-env": {
@@ -64,7 +64,7 @@ module.exports = {
6464
},
6565
},
6666
},
67-
}
67+
};
6868
```
6969

7070
If you wish to add a new plugin like [CssNano](https://cssnano.co/) run the following command and update the `postcss.config.js`.

starters/features/postcss/postcss.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
plugins: {
33
autoprefixer: {},
44
"postcss-preset-env": {

0 commit comments

Comments
 (0)