markstory / asset_compress
An asset compression plugin for CakePHP. Provides file concatenation and a flexible filter system for preprocessing and minification.
Installs: 861 574
Dependents: 10
Suggesters: 52
Security: 0
Stars: 370
Watchers: 30
Forks: 125
Open Issues: 30
Type:cakephp-plugin
Requires
- php: >=8.1.0
- cakephp/cakephp: ^5.0
- markstory/mini-asset: ^2.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
Requires (Dev)
- cakephp/cakephp-codesniffer: ^5.0
- phpunit/phpunit: ^10.1.0
Suggests
- 328/jsqueeze: For using the JSqueeze filter.
- leafo/lessphp: For using the LessPHP filter.
- natxet/CssMin: For using the CssMin filter.
- patchwork/jshrink: For using the JShrink filter.
- scssphp/scssphp: For using the ScssPHP filter.
- dev-master
- 5.x-dev
- 5.0.1
- 5.0.0
- 4.x-dev
- 4.1.0
- 4.0.4
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 3.x-dev
- 3.5.1
- 3.5.0
- 3.4.2
- 3.4.1
- 3.4.0
- 3.3.1
- 3.3.0
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.2.0-RC2
- 3.2.0-RC1
- 3.1.0
- 3.0.2
- 3.0.1
- 3.0.0
- v3.0.0-alpha
- 2.x-dev
- 0.26
- 0.25
- 0.24
- 0.23
- 0.22
- 0.21
- v0.20
- v0.19
- v0.18
- v0.17
- v0.16
- v0.15
- v0.14
- v0.13
- v0.12
- v0.11
- v0.10
- v0.9
- v0.8
- dev-issue-307
This package is auto-updated.
Last update: 2024-10-26 13:04:03 UTC
README
Asset Compress 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.
Installing
Add this plugin to your application with composer:
php composer.phar require markstory/asset_compress
Then make sure you load the plugin:
// in src/Application.php
// in the bootstrap() method add
$this->addPlugin('AssetCompress');
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.