136

Product support

Get help in the plugin support forum.

Categories

This plugin compresses HTML, inline CSS and JavaScript.

Currently supported Twig features are:

Tag {% htmlcompress %} ... {% endhtmlcompress %}

Function {{ htmlcompress('some html') }}

Filter {{ content|markdown|htmlcompress }}

HTML minify plugin for October CMS

Plugin based on https://github.com/nochso/html-compress-twig

Currently supported Twig features are:

Tag {% htmlcompress %} ... {% endhtmlcompress %}

Function {{ htmlcompress('some html') }}

Filter {{ content|markdown|htmlcompress }}

Install plugin and then use it in your templates:

{% htmlcompress %}{% endhtmlcompress %}

{{ htmlcompress('<ul> <li>') }}

{{ '<ul> <li>'|htmlcompress }}
  • Found the plugin useful on 8 Jul, 2020

    It doesn't work with Static Pages plugin. Do you have plans to support it in the future?

  • Found the plugin useful on 20 Oct, 2018

    Nice to use!

  • Found the plugin useful on 31 Dec, 2017

    Thank you very much for this plugin!

1.0.2

Fixed Error When Using OctoberCMS as a SPA (e.g. easySPA plugin)

Jul 24, 2019

1.0.1

HTML minify plugin

Dec 17, 2017