lib/jekyll/converters/postcss.rb in jekyll-postcss-0.3.2 vs lib/jekyll/converters/postcss.rb in jekyll-postcss-0.4.0

- old
+ new

@@ -5,11 +5,11 @@ module Jekyll module Converters class PostCss < Converter safe true - priority :low + priority :normal def initialize(config = {}) super @socket = config.fetch("socket") { ::PostCss::Socket.new } @@ -17,14 +17,14 @@ @import_raw_cache = {} @converted_cache = nil end def matches(ext) - ext.casecmp(".css").zero? + [".css", ".scss", ".sass"].include?(ext.downcase) end - def output_ext(_ext) - ".css" + def output_ext(ext) + ext end def convert(content) raise PostCssNotFoundError unless Dir.exist?("./node_modules/postcss")