-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not rebuilding automatically when new classes are added to templates #190
Comments
I am running into the same issue as well. |
Same issue here, though I'm in a devcontainer. safelist: [
{
pattern: /./,
}
], |
So, after tearing all my hairs off, I found a solution, you must set this env var |
Thanks, that fixed it for me! |
@Zenthae thanks a lot man, you saved my life here. I've been trying to make this work for like a week today. Works perfectly with that env var on docker now, thank you! |
That's pretty much it. I installed and set it up all according to instructions on the website, also used the browser reload package, was working on Windows. When I run
python manage.py tailwind start
, it launches just fine and rebuilds everything. However, after that, when I edit and save the templates, nothing happens, and it doesn't trigger the rebuild process at all. The only workaround I have found besides just relaunching that program each time is just to save the tailwind.config.js file, which will make it rebuild just fine as well, but that of course is really just a hack and kind of not what I intended (and probably not what the developer intended either).Node.js version:
18.16.0
npm version:9.5.1
I first thought the problem might be with the content paths in my configs, but since it actually does find new utility classes and builds them correctly, I can only assume the problem might be somewhere else (by the way, the default paths work just fine when detecting templates on launch in my project). However, the docs for this package don't really mention any other setup being required for the JIT mode to work — in fact, isn't JIT mode integrated in new versions anyway?
The text was updated successfully, but these errors were encountered: