lib/jekyll-minifier.rb in jekyll-minifier-0.0.9 vs lib/jekyll-minifier.rb in jekyll-minifier-0.1.0
- old
+ new
@@ -1,8 +1,8 @@
require 'uglifier'
require 'htmlcompressor'
-require 'cssminify'
+require 'cssminify2'
module Jekyll
module Compressor
def exclude?(dest, dest_path)
res = false
@@ -28,20 +28,20 @@
f.write(content)
end
end
def output_html(path, content)
- compressor = HtmlCompressor::Compressor.new({ :remove_comments => true, :compress_css => true, :compress_javascript => true, :css_compressor => CSSminify.new, :javascript_compressor => Uglifier.new })
+ compressor = HtmlCompressor::Compressor.new({ :remove_comments => true, :compress_css => true, :compress_javascript => true, :css_compressor => CSSminify2.new, :javascript_compressor => Uglifier.new })
output_file(path, compressor.compress(content))
end
def output_js(path, content)
compressed = Uglifier.new
output_file(path, compressed.compile(content))
end
def output_css(path, content)
- compressor = CSSminify.new
+ compressor = CSSminify2.new
output_file(path, compressor.compress(content))
end
end
class Document