django-commons / django-tailwind-cli

Django and Tailwind integration based on the prebuilt Tailwind CSS CLI.
https://django-tailwind-cli.rtfd.io/
MIT License
102 stars 11 forks source link

Add better support for PyCharm #142

Open oliverandrich opened 4 days ago

oliverandrich commented 4 days ago

PyCharm's tailwindcss plugin has an issue with the CLI.

https://youtrack.jetbrains.com/issue/WEB-55647/Support-Tailwind-css-autocompletion-using-standalone-tailwind-CLI#focus=Comments-27-10957961.0-0

It might be a handy idea to support a workaround that is handled by the runserver and runserver_plus command. Say could temporarily create the required files and links and delete them, when the server exits.

oliverandrich commented 4 days ago

The idea with the runserver command is not good. I kills the support as soon as the runserver is not running. The approach has to be to create a management command, that installs the fix based on the used tailwindcss cli version.

And the fix should integrate a way to update the links as soon as the cli version is changed.