dorsetdigital / silverstripe-htmlminifier
HTML minifier for Silverstripe
Installs: 1 408
Dependents: 0
Suggesters: 1
Security: 0
Stars: 4
Watchers: 2
Forks: 0
Open Issues: 0
Type:silverstripe-vendormodule
Requires
- silverstripe/cms: ^4
- silverstripe/vendor-plugin: ^1.0
- voku/html-min: ^4
This package is auto-updated.
Last update: 2024-11-16 18:13:27 UTC
README
This module minifies the output of a Silverstripe site using the HtmlMin package
Requirements
*Silverstripe 4.x
Installation
- Install the code with
composer require dorsetdigital/silverstripe-htmlminifier "^1"
- Run a
dev/build?flush
to update your project
Usage
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)
Notes
- The module is disabled in the CMS / admin system
Credits
- Uses the excellent HtmlMin package (https://github.com/voku/HtmlMin)
- As always, thanks to the core team for all their hard work.