Skip to content

Commit

Permalink
Add JSDoc types to other examples
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Mar 27, 2023
1 parent 54976db commit 8f237bf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,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 @@ -311,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 8f237bf

Please sign in to comment.