Skip to content

Instantly share code, notes, and snippets.

@ahoward
Last active December 2, 2016 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahoward/4df76cb989de75d29b4a67d564a50351 to your computer and use it in GitHub Desktop.
Save ahoward/4df76cb989de75d29b4a67d564a50351 to your computer and use it in GitHub Desktop.
skip bower / bower_components during 'rails assets:precompile'
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