From: Ian Kelling Date: Tue, 4 Oct 2016 17:14:40 +0000 (-0700) Subject: faster, cleaner sass generation X-Git-Url: https://iankelling.org/git/?p=iankelling.org;a=commitdiff_plain;h=c1871d16306dcb56d84582144a97ce51e040001d faster, cleaner sass generation --- diff --git a/build.rb b/build.rb index 370047f..65264b6 100755 --- a/build.rb +++ b/build.rb @@ -94,5 +94,7 @@ stdpage('favorite-things', File.read('../favorite-things.html')) # we could use ruby native stuff here, but this was # better documented so meh. # Force because it's cache is not perfect, it definitely misses renamed symlinks. -# This creates a few extra files, but oh well. -system("scss --force --cache-location ../.sass-cache --update ../css:css") +["main", "gitweb-site"].each do |basename| + cmd = "scss --force --cache-location ../.sass-cache" + system("#{cmd} ../css/#{basename}.scss css/#{basename}.css") +end