clthck / asset-compress-improved
An asset compression plugin for CakePHP. Provides file concatenation and a flexible filter system for preprocessing and minification.
Installs: 103
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 115
Open Issues: 0
Type:cakephp-plugin
Requires
Requires (Dev)
- cakephp/cakephp-codesniffer: dev-master
- phpunit/phpunit: 4.1.*
Suggests
- leafo/lessphp: For using the LessPHP filter.
- leafo/scssphp: For using the ScssPHP filter.
- linkorb/jsmin-php: For using the JSMin filter.
- natxet/CssMin: For using the CssMin filter.
- tedivm/jshrink: For using the JShrink filter.
README
Asset Compress Improved is CakePHP plugin for helping reduce the number of requests, and optimizing the remaining requests your application makes for Javascript and CSS files.
Features
- Development mode builder that rebuilds assets on each request.
- Command line build tool to compile static assets for deployment.
- Built-in support for LESScss, Sass and CoffeeScript, as well as several minifiers.
- Powerful and flexible filter system allowing you to add your own minifiers/pre-processors.
- Simple configuration file.
- Incremental builds that don't recompile assets when they don't need to be.
Installation
Clone or download the plugin into one of your plugin paths (you can also use composer
). Then make
sure you load the plugin:
// in config/bootstrap.php
Plugin::load('AssetCompress', ['bootstrap' => true]);
Copy the config/asset_compress.sample.ini
from the plugin to your app's
config/asset_compress.ini
. From there read the wiki
for more information.
Documentation
Documentation for AssetCompress is available on the github wiki pages
Issues
Please report any issues you have with the plugin to the issue tracker on github.
License
Asset Compress is offered under an MIT license.
Authors
See the github contributors list
Changelog
See CHANGELOG for changes only available on master
. See
github releases for changelogs on previous releases.