Unable to make prettier-plugin-tailwindcss to work #180
-
|
Hi! I am completely stuck with prettier-plugin-tailwindcss as I am unable to make it sort my tailwind classes in PHP and CSS files... I have tried adding .prettierrc.js file where I would specify this prettier plugin, but that didn't work either. Is there something that I am missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Okay, so I made it work inside CSS and HTML files by adding this prettier plugin inside my package.json file: "prettier": { But it still isn't doing anything inside PHP files :( |
Beta Was this translation helpful? Give feedback.
Hi Jonas—Thanks for this!
There are a few different points here:
I tried your solution above. Did you need to install something to support
...(extends)? It doesn't work for me as written.I think I'll likely fix this with a
prettier.config.mjsfile. I used this: