Skip to content

A Silverstripe module for minifying static JS and CSS assets.

License

Notifications You must be signed in to change notification settings

LoveDuckie/silverstripe-minifier

 
 

Repository files navigation

Silverstripe Minifier

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.