-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
esbuild not re-building css #52
Comments
Hi, When I do the same thing and run it, both js and css do update on changes. Modifying the application.css as well as adding new tailwind classes into any erb template results in a new css file being generated. Do you have both NODE_ENV and RAILS_ENV set to development and you've built your images with them set? I don't have a mac to test this on but I would start by running |
By the way, a temporary (and not ideal) solution would be to run |
Hi, Yes, I have both NODE_ENV and RAILS_ENV set to development. |
Did you try the debugging steps from my previous comment? |
Yes I did. changes I make to |
Hmm, I wonder what's up with that. I can't reproduce that in this example project, although I haven't build it in a while with What if inside of the Dockerfile you add |
I'm going to close this one out, I think this was a bug with TailwindCSS and I was able to reproduce it. This project is using TailwindCSS 3.2.4 where file watch changes are working without having to do anything extra. It it possible that you're using an earlier version of TailwindCSS 3.2.X? I did notice in a project using TailwindCSS 3.2.1 CSS changes weren't being picked up. I see this also referenced in tailwindlabs/tailwindcss#7759 and 3.2.4 has that fix applied. |
Hi Nick,
Really great setup you have here. I've followed through your readme. In fact, I simply cloned and set up a sample project using your starter kit.
All the services are up and running as expected. The only issue is 'css' esbuild doesn't re-build when I make an update in the views folder or
appplication.css
file, as expected.The 'js' watcher works as expected.
I'm sure it might be an issue with my setup.
I'm using a Mac Book Pro M1, with docker;
Docker version 20.10.17, build 100c701
This may have nothing to do with your starter kit, and may be an issue with my setup, so I will appreciate any pointers on what to look at.
I did a fresh install using
rails new myapp -j esbuild -c tailwind
and run it without docker, and both watchers worked as expected, so I'm thinking this could be something related to Docker.Anyway, thanks and hope you have some ideas
The text was updated successfully, but these errors were encountered: