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

sprockets-rails 3.1.1 precompiles all assets in development #374

Closed
dfritsch86 opened this issue Aug 18, 2016 · 1 comment
Closed

sprockets-rails 3.1.1 precompiles all assets in development #374

dfritsch86 opened this issue Aug 18, 2016 · 1 comment

Comments

@dfritsch86
Copy link

dfritsch86 commented Aug 18, 2016

I have a rails application with huge amounts of assets due to some frontend frameworks. In config/initializers/assets.rb I use wildcard selectors to precompile all assets for production.

When starting the rails sever for development, the first request takes forever, presumably because all assets are being precompiled. This seems to happen only with the newer versions of sprockets-rails (3.1).

Older versions of sprockets-rails (2.3.3) would load just fine. My feeling is that older versions would not compile all the assets greedily, but only when needed, while never versions seem to compile them all upfront.

Is this behaviour intended?

I made a small example app to demonstrate the issue.

@rafaelfranca
Copy link
Member

Duplicated of #352

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

2 participants