Skip to content

grow/grow-ext-html-min

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Disable per environment

To disable, set the enabled config to False.

ext:
- extensions.html_min.HtmlMinExtension:
    [email protected]: False

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

About

Extension for Grow for minifying html.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published