lib/jammit/compressor.rb in jammit-ebtd-0.6.6 vs lib/jammit/compressor.rb in jammit-ebtd-0.6.7
- old
+ new
@@ -43,23 +43,26 @@
JAVASCRIPT_COMPRESSORS = {
:jsmin => Jammit.javascript_compressors.include?(:jsmin) ? Jammit::JsminCompressor : nil,
:yui => Jammit.javascript_compressors.include?(:yui) ? YUI::JavaScriptCompressor : nil,
:closure => Jammit.javascript_compressors.include?(:closure) ? Closure::Compiler : nil,
- :uglifier => Jammit.javascript_compressors.include?(:uglifier) ? Jammit::Uglifier : nil
+ :uglifier => Jammit.javascript_compressors.include?(:uglifier) ? Jammit::Uglifier : nil,
+ :none => Jammit::NoneCompressor
}
CSS_COMPRESSORS = {
:cssmin => Jammit.css_compressors.include?(:cssmin) ? Jammit::CssminCompressor : nil,
:yui => Jammit.css_compressors.include?(:yui) ? YUI::CssCompressor : nil,
- :sass => Jammit.css_compressors.include?(:sass) ? Jammit::SassCompressor : nil
+ :sass => Jammit.css_compressors.include?(:sass) ? Jammit::SassCompressor : nil,
+ :none => Jammit::NoneCompressor
}
JAVASCRIPT_DEFAULT_OPTIONS = {
:jsmin => {},
:yui => {:munge => true},
:closure => {},
- :uglifier => {:copyright => false}
+ :uglifier => {:copyright => false},
+ :none => {}
}
# CSS compression can be provided with YUI Compressor or sass. JS
# compression can be provided with YUI Compressor, Google Closure
# Compiler or UglifyJS.