Created
April 10, 2015 10:20
-
-
Save hagenburger/a1e7efdddad15e3abc1f to your computer and use it in GitHub Desktop.
Fix for Rails if _xyz.lsg raise errors on rake assets:precompile
This file contains hidden or 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.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