Module: Jekyll::MinifyJS
- Defined in:
- lib/starter_web/_plugins/filter/minifyJS.rb
Instance Method Summary collapse
Instance Method Details
#minifyJS(input) ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/starter_web/_plugins/filter/minifyJS.rb', line 43 def minifyJS(input) # see: https://github.com/mishoo/UglifyJS/issues/495 # quote_style 3 -- always use the original quotes minified = Uglifier.compile(input, harmony: true, :output => { :quote_style => 3 } ) input = minified end |