Created
December 28, 2011 18:38
Revisions
-
iwinux revised this gist
Dec 28, 2011 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,6 @@ def compile_asset?(path) # ignores any filename that begins with '_' (e.g. sass partials) # all other css/js/sass/image files are processed if File.basename(path) =~ /^[^_].*\.\w+$/ puts "Compiling: #{path}" true -
iwinux created this gist
Dec 28, 2011 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ def compile_asset?(path) if File.basename(path) =~ /^[^_].*\.\w+$/ puts "Compiling: #{path}" true else puts "Ignoring: #{path}" false end end config.assets.precompile = [ method(:compile_asset?).to_proc ]