-
-
Save ahoward/4df76cb989de75d29b4a67d564a50351 to your computer and use it in GitHub Desktop.
skip bower / bower_components during 'rails assets:precompile'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config = Rails.application.config | |
default_precompile = config.assets.precompile | |
config.assets.precompile = [ | |
proc do |path| | |
if path =~ /bower_components/ | |
false | |
else | |
default_precompile.call(path) | |
end | |
end | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment