Rename gzip_assets to just gzip since it does HTML too
This commit is contained in:
parent
bba2584c81
commit
317dfb318a
|
@ -1 +1 @@
|
|||
activate :gzip_assets
|
||||
activate :gzip
|
||||
|
|
|
@ -45,8 +45,8 @@ module Middleman
|
|||
# MinifyJavascript uses the YUI compressor to shrink JS files
|
||||
autoload :MinifyJavascript, "middleman-more/extensions/minify_javascript"
|
||||
|
||||
# GZIP assets during build
|
||||
autoload :GzipAssets, "middleman-more/extensions/gzip_assets"
|
||||
# GZIP assets and pages during build
|
||||
autoload :Gzip, "middleman-more/extensions/gzip"
|
||||
end
|
||||
|
||||
# Setup renderers
|
||||
|
|
|
@ -4,8 +4,8 @@ require 'find'
|
|||
|
||||
module Middleman::Extensions
|
||||
|
||||
# This extension Gzips assets when building.
|
||||
# Gzipped assets can be served directly by Apache or
|
||||
# This extension Gzips assets and pages when building.
|
||||
# Gzipped assets and pages can be served directly by Apache or
|
||||
# Nginx with the proper configuration, and pre-zipping means that we
|
||||
# can use a more agressive compression level at no CPU cost per request.
|
||||
#
|
||||
|
@ -15,7 +15,7 @@ module Middleman::Extensions
|
|||
# Pass the :exts options to customize which file extensions get zipped (defaults
|
||||
# to .html, .htm, .js and .css.
|
||||
#
|
||||
module GzipAssets
|
||||
module Gzip
|
||||
class << self
|
||||
def registered(app, options={})
|
||||
exts = options[:exts] || %w(.js .css .html .htm)
|
Loading…
Reference in a new issue