Sha256: ebdb1619cae1a198e9b65e647b1afde5a716896ffc4b7fcc7d9678307700d1ba
Contents?: true
Size: 547 Bytes
Versions: 4
Compression:
Stored size: 547 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 '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
4 entries across 4 versions & 1 rubygems