-
Notifications
You must be signed in to change notification settings - Fork 269
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
Added option ':assets_manifests' to support custom manifest file path #216
Conversation
Thanks for the PR! This project lacks automated tests, which makes reviewing and approving PRs somewhat difficult. Please make sure that your contribution has not broken backwards compatibility or introduced any risky changes. Generated by 🚫 Danger |
Hi, this seems like a useful feature. Thanks for the PR! I appreciate the tweaks you made for coding style and adding a good CHANGELOG entry. Before merging this, I would like to suggest some minor changes to make the code a bit more clear.
Perhaps the default value could be something like this: # Default set in load:defaults
set :assets_manifest, -> {
%w[.sprockets-manifest* manifest*.*].map do |pattern|
release_path.join("public", fetch(:assets_prefix), pattern)
end
} Also, could you rebase and fix the conflict? Thanks! |
@mattbrictson Thank you for your feedback! I think you’re right. |
@mattbrictson Fixed.
|
Very need this fix |
Actually there is manifest file in /public/pack directory, but capistrano/rails watch only /public/assets Need to deal with it)) |
This looks good! I'll test it this week with an actual deploy and merge it if it all works. |
2218eba
to
54a3766
Compare
All checks out 👍 Congrats on your first contribution to the project! |
I plan to push a new version of the gem this weekend. |
Thank you for reviewing this PR. |
Added option ':assets_manifest' to support custom manifest file path.
Without this option and set
config.assets.manifest
inconfig/application.rb
, the following error message appears.config.assets.manifest
is used in https://github.com/rails/sprockets-rails.