Skip to content

Commit ed44540

Browse files
robinwhgbradlc
andauthored
Update README with pnpm config (#47)
* Update README with pnpm config * Move pnpm notice to installation section, tweak wording Co-authored-by: Brad Cornes <[email protected]>
1 parent 90f6536 commit ed44540

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ npm install -D prettier prettier-plugin-tailwindcss
1212

1313
This plugin follows Prettier’s autoloading convention, so as long as you’ve got Prettier set up in your project, it’ll start working automatically as soon as it’s installed.
1414

15+
_Note that plugin autoloading is not supported when using certain package managers, such as pnpm or Yarn PnP. In this case you may need to add the plugin to your Prettier config explicitly:_
16+
17+
```js
18+
// prettier.config.js
19+
module.exports = {
20+
plugins: [require('prettier-plugin-tailwindcss')],
21+
}
22+
```
23+
1524
## Resolving your Tailwind configuration
1625

1726
To ensure that the class sorting is taking into consideration any of your project's Tailwind customizations, it needs access to your [Tailwind configuration file](https://tailwindcss.com/docs/configuration) (`tailwind.config.js`).

0 commit comments

Comments
 (0)