rhubarbphp / module-minified-resource-deployment
A resource deployment provider that minifies resources
Installs: 4 125
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Requires
- php: >=5.6.0
- mrclay/jsmin-php: ^2.3
- rhubarbphp/rhubarb: ^1.5.1
Requires (Dev)
- codeception/codeception: ^2.0.0
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);