Simple extension for minifying html after Grow renders a page.
- Create an
extensions.txt
file within your pod. - Add to the file:
git+git://github.com/grow/grow-ext-html-min
- Run
grow install
. - Add the following section to
podspec.yaml
:
ext:
- extensions.html_min.HtmlMinExtension
When rendering HTML pages Grow will minify the resulting html.
To disable, set the enabled
config to False
.
ext:
- extensions.html_min.HtmlMinExtension:
enabled@env.staging: False
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