rhubarbphp/module-minified-resource-deployment

A resource deployment provider that minifies resources

1.0.1 2017-11-29 11:50 UTC

This package is auto-updated.

Last update: 2024-10-29 05:22:28 UTC


README

A resource deployment provider for Rhubarb that minifies Javascript during deployment.

Minification only occurs for local JS resources and if the original source file is newer than the previously minified verison.

Installation

Simply require the module:

composer require rhubarbphp/rhubarbphp/module-minified-resource-deployment

Usage

Simply switch to using the MinifiedResourceDeploymentProvider as your chosen provider in your inialise() method of your Rhubarb Application object.

ResourceDeploymentProvider::setProviderClassName(MinifiedResourceDeploymentProvider::class);