I'm developing a package (I'll call it extra for now) in parallel to a django project (so they are separate packages). The extra package is installed (editable) into the Django project as a django app.
The extra package includes templates with tailwind classes, so I want them scanned.
When doing a manage.py tailwind list_templates all templates of the extra package are listed. However there are not scanned by tailwind watch. The templates in the django app are scanned correctly.
The only way to have it work is to use a custom tailwind_source.css file:
@import "tailwindcss";
@plugin "daisyui";
@source "../../../../../src/extra/templates/**/*.html";
/* Safelist DaisyUI form classes */
@source inline("input input-bordered input-primary input-error select select-bordered textarea textarea-bordered label checkbox radio");
(Note that the extra package is not within the django project files. )
This works but is a bit of a monstrosity.
I'm developing a package (I'll call it extra for now) in parallel to a django project (so they are separate packages). The extra package is installed (editable) into the Django project as a django app.
The extra package includes templates with tailwind classes, so I want them scanned.
When doing a
manage.py tailwind list_templatesall templates of the extra package are listed. However there are not scanned by tailwind watch. The templates in the django app are scanned correctly.The only way to have it work is to use a custom tailwind_source.css file:
(Note that the extra package is not within the django project files. )
This works but is a bit of a monstrosity.