This module minifies the output of a Silverstripe site using the HtmlMin package
*Silverstripe 4.x
- Install the code with
composer require dorsetdigital/silverstripe-htmlminifier "^1"
- Run a
dev/build?flush
to update your project
The module needs to be enabled in order to work. This can be done in a yml file:
---
Name: minifierconfig
---
DorsetDigital\SSMinifier\Middleware:
enable: true
enable_in_dev: false
The options are hopefully fairly self explanatory:
enable
- enable minificationenable_in_dev
- enable minification in dev mode (default false)
- The module is disabled in the CMS / admin system
- Uses the excellent HtmlMin package (https://github.com/voku/HtmlMin)
- As always, thanks to the core team for all their hard work.