Skip to content
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

Long initial delay when e.g. starting a Rails console #129

Open
floehopper opened this issue Jan 5, 2024 · 1 comment
Open

Long initial delay when e.g. starting a Rails console #129

floehopper opened this issue Jan 5, 2024 · 1 comment

Comments

@floehopper
Copy link
Member

When I was investigating how the browserlist warning that I fixed in 35de739, I seem to remember being surprised about the scenarios in which tailwindcss-rails recompiles assets. I have a feeling this is what's happening when you open a Rails console and maybe other Rails/Rake tasks...?

@floehopper
Copy link
Member Author

As I said above, I suspect this is related to the tailwindcss-rails gem. However, I recently came across this useful write-up about assets in a modern Rails app by @rgarner which mentions something that might be somewhat related:

We used to use jsbundling-rails and cssbundling-rails with the esbuild opinion. We no longer do this. This is mostly because both those gems now indiscriminately enhance the spec:prepare rake task such that CSS and JS are built even when running a single spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant