loveduckie / silverstripe-minifier
A Silverstripe module for minifying static JS and CSS assets.
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 3
Type:silverstripe-vendormodule
Requires
- matthiasmullie/minify: ^1.3
- silverstripe/framework: ^4.0
This package is auto-updated.
Last update: 2024-12-21 16:00:07 UTC
README
An extension to integrate matthiasmullie/minify minification into SilverStripe 4 to minify all combined JavaScript and CSS files.
Requirements
- SilverStripe 4+ or 5+
Installation via composer
composer require loveduckie/silverstripe-minifier
Usage
The module is currently just plug-and-play. Once installed it will automatically minify
all combined JavaScript and CSS files in live
mode. Do not forget to ?flush
after installation.
Please refer to the PageController example to see example usage in
your PageController
.