lib/plezi/render/sass.rb in plezi-0.14.7 vs lib/plezi/render/sass.rb in plezi-0.14.8

- old
+ new

@@ -27,10 +27,10 @@ end def review_cache(filename, target) return nil unless File.exist?(filename) eng = self[filename] - return true unless eng.nil? || refresh_sass?(filename) + return self[target] unless eng.nil? || refresh_sass?(filename) self[filename] = (eng = Sass::Engine.for_file(filename, SASS_OPTIONS)).dependencies map_name = "#{target}.map".freeze css, map = eng.render_with_sourcemap(File.basename(map_name)) self[filename.to_sym] = Time.now IO.write map_name, map.to_json(css_uri: File.basename(target))