loveduckie/silverstripe-minifier

A Silverstripe module for minifying static JS and CSS assets.

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 3

Type:silverstripe-vendormodule

1.0.3 2020-11-27 07:12 UTC

This package is auto-updated.

Last update: 2024-04-20 11:32:14 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.