Use one of the alternatives below.
If you are using the Kirby CLI you can install this plugin by running the following commands in your shell:
$ cd path/to/kirby
$ kirby plugin:install jenstornell/kirby-html-minifier
- Clone or download this repository.
- Unzip the archive if needed and rename the folder to
kirby-html-minifier
.
Make sure that the plugin folder structure looks like this:
site/plugins/kirby-html-minifier/
If you know your way around Git, you can download this plugin as a submodule:
$ cd path/to/kirby
$ git submodule add https://github.com/jenstornell/kirby-html-minifier site/plugins/kirby-html-minifier
When the plugin is successfully installed, your html code should be minified.