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

I must use asset-map:compile to see modification #77

Open LewisSama opened 1 week ago

LewisSama commented 1 week ago

Hi !

I'm using the template from dunglas/symfony-docker. I followed the instruction to build/launch my container and installed the bare minimum according to documentation:

Twig:

Asset-mapper:

Tailwindbundle:

After installing those according to documentation, i created a simple controller to use my twig file but i encounter an error: An exception has been thrown during the rendering of a template ("Built Tailwind CSS file does not exist: run "php bin/console tailwind:build" to generate it").

Even after running php bin/console tailwind:build, the error persists. The only way to stop this error is to compile using asset-map:compile.

Afterward, every change i've made and built are not applied even when i use the --poll and i must rerun asset-map:compile to see any modification.

As it is very inconvenient to use asset-map:compile at every change, i wanted to know if there is anyway to make my tailwind:build --watch works.

Also, it's my first issue on GitHub so if there is any modification to make or precision, please tell me.