-
Notifications
You must be signed in to change notification settings - Fork 120
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
Automatically add pinned files to assets.precompile #166
Comments
Maybe I'm misunderstanding, but isn't this already done here? https://github.com/rails/importmap-rails/blob/main/lib/importmap/engine.rb#L44-L46 |
That adds the shim to the precompile list. If you comment out the highlighted lines in any of the gems above, you'll get |
@ankane Ah, I see. This is mainly for gems. When you said pinned files, I thought you meant files inside the Rails app, which I believe are precompiled, since they are in |
I'd be happy to see this. |
Hi, I wanted to get thoughts on automatically adding pinned files to
Rails.application.config.assets.precompile
. I think it could eliminate complexity for both gem maintainers and gem users. Gem maintainers wouldn't need any additional engine code and gem users wouldn't need to remove assets if they're not usingimportmap-rails
.A few examples of complexity that could be eliminated:
The text was updated successfully, but these errors were encountered: