Extension for Grow for minifying html.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
html_min
.gitignore
LICENSE
Makefile
README.md
setup.py

README.md

grow-ext-html-min

Simple extension for minifying html after Grow renders a page.

Usage

Initial setup

  1. Create an extensions.txt file within your pod.
  2. Add to the file: git+git://github.com/grow/grow-ext-html-min
  3. Run grow install.
  4. Add the following section to podspec.yaml:
ext:
- extensions.html_min.HtmlMinExtension

When rendering HTML pages Grow will minify the resulting html.

Options

The configuration can also be used with the options for htmlmin.

For example:

ext:
- extensions.html_min.HtmlMinExtension:
    options:
      remove_comments: true
      reduce_boolean_attributes: false

Grow Support

This extension requires the new Grow routing to be used. If you are using the old routing (ex: grow build --old-routing) this extension will not run.