SymfonyCasts / tailwind-bundle

Delightful Tailwind Support for Symfony + AssetMapper
https://symfony.com/bundles/TailwindBundle/current/index.html
MIT License
84 stars 20 forks source link

Jetbrains autocomplete on clean symfony project #28

Open bsdrazor opened 1 year ago

bsdrazor commented 1 year ago

I've just created a new symfony project, installed only this bundle. With ./bin/console tailwind:init commad initiated the config files When I try to edit some twig files in templates folder, or the app.css file - the Jetbrains Tailwind plugin doesnt autocompletes anything. Can someone give an advice how to make it work ? Many thanks for any answer

back-2-95 commented 1 year ago

My understanding is that for autocomplete in IDE (I have PhpStorm) you need to have tailwindcss npm package installed. I did yarn install tailwindcss and disable/enable Tailwind plugin and I got autocomplete back.

As having package.json and node_modules is not needed with Asset Mapper, I might just gitignore also package.json + lock file and install them when I init my project.

weaverryan commented 1 year ago

That’s an annoying requirement - it’d be great if jetbrains could find / be configured to use the standalone official binary the bundle downloads.

fracsi commented 12 months ago

There is already a support ticket for it