Sha256: 6581ac8579dbd4410b571163448ae60eea7f9948c781590738b8a5ad416f8ad5
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
module Middleman module MinifyHtml class << self def registered(app, options={}) app.set :html_compressor, false app.after_configuration do unless respond_to?(:html_compressor) && html_compressor require File.join(File.dirname(__FILE__), 'vendor/htmlcompressor-0.0.6/lib/htmlcompressor') set :html_compressor, ::HtmlCompressor::Compressor.new(options) end # Setup Rack to watch for inline JS use ::HtmlCompressor::Rack, options end end alias :included :registered end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
middleman-minify-html-3.1.1 | lib/middleman-minify-html/extension.rb |