Skip to content

Instantly share code, notes, and snippets.

@hagenburger
Created April 10, 2015 10:20
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 hagenburger/a1e7efdddad15e3abc1f to your computer and use it in GitHub Desktop.
Save hagenburger/a1e7efdddad15e3abc1f to your computer and use it in GitHub Desktop.
Fix for Rails if _xyz.lsg raise errors on rake assets:precompile
config.assets.precompile.clear
precompiled_extensions = %w(.html .css .js .png .gif .jpg .svg .woff .woff2 .eot .ttf)
config.assets.precompile.push(Proc.new { |path|
File.extname(path).in?(precompiled_extensions) and not path =~ /^_|\/_/
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment