Skip to content

Commit

Permalink
Merge pull request #1824 from karlhorky/patch-1
Browse files Browse the repository at this point in the history
Add JSDoc type for config
  • Loading branch information
ai committed Mar 27, 2023
2 parents 0de0e1e + 8f237bf commit c2e94de
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Expand Up @@ -241,12 +241,15 @@ module.exports = {
Then create `postcss.config.js`:

```js
module.exports = {
/** @type {import('postcss-load-config').Config} */
const config = {
plugins: [
require('autoprefixer'),
require('postcss-nested')
]
}

module.exports = config
```

[`astroturf`]: https://github.com/4Catalyzer/astroturf
Expand All @@ -259,12 +262,15 @@ and cssnano. If you want to change plugins, create `postcss.config.js`
in project’s root:

```js
module.exports = {
/** @type {import('postcss-load-config').Config} */
const config = {
plugins: [
require('autoprefixer'),
require('postcss-nested')
]
}

module.exports = config
```

Parcel will even automatically install these plugins for you.
Expand Down Expand Up @@ -308,12 +314,15 @@ module.exports = {
Then create `postcss.config.js`:

```js
module.exports = {
/** @type {import('postcss-load-config').Config} */
const config = {
plugins: [
require('autoprefixer'),
require('postcss-nested')
]
}

module.exports = config
```

[`postcss-loader`]: https://github.com/postcss/postcss-loader
Expand Down

0 comments on commit c2e94de

Please sign in to comment.