diff options
author | Gleb Mazovetskiy <glex.spb@gmail.com> | 2018-08-06 21:25:34 +0300 |
---|---|---|
committer | Gleb Mazovetskiy <glex.spb@gmail.com> | 2018-08-06 21:25:34 +0300 |
commit | 7c6056eebb7a9fd8cac7845ca31bf62a81627df2 (patch) | |
tree | c16dd7121544ab3b56ae29093871784767817484 /Rakefile | |
parent | 5a2f627e569370399626f12678a92b6ab5aca4d4 (diff) |
sass -> sassc
Fixes #159
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -45,13 +45,13 @@ end desc 'Dumps output to a CSS file for testing' task :debug do - require 'sass' + require 'sassc' require './lib/bootstrap' require 'term/ansicolor' require 'autoprefixer-rails' path = Bootstrap.stylesheets_path %w(_bootstrap _bootstrap-reboot _bootstrap-grid).each do |file| - engine = Sass::Engine.for_file("#{path}/#{file}.scss", syntax: :scss, load_paths: [path]) + engine = SassC::Engine.new(File.read("#{path}/#{file}.scss"), syntax: :scss, load_paths: [path]) out = File.join('tmp', "#{file[1..-1]}.css") css = engine.render css = AutoprefixerRails.process(css) |