clthck / mini-asset-improved
An improved version of markstory/mini-asset. An asset compression library. Provides file concatenation and a flexible filter system for preprocessing and minification.
Installs: 105
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 15
Open Issues: 0
Type:cakephp-plugin
Requires
- league/climate: ~3.0
Requires (Dev)
- phpunit/phpunit: 4.1.*
- squizlabs/php_codesniffer: *
Suggests
- leafo/scssphp: For using the ScssPHP filter.
- linkorb/jsmin-php: For using the JSMin filter.
- natxet/CssMin: For using the CssMin filter.
- oyejorge/less.php: For using the LessDotPHP filter, see https://github.com/oyejorge/less.php
- tedivm/jshrink: For using the JShrink filter.
README
Mini Asset Improved is a small footprint library that provide tools to assist in building an asset minification/optimization pipeline. It uses a simple INI based configuration file that lets you define output files, that are comprised of a number of input files. Input files can be processed by filters on a per-extension or per file basis. Filters allow you to integrate existing pre-processors and minifiers or build your own.
Original Features
Please check markstory/mini-asset for original feature set.
Improved Features
- Fixed globbing path issue, fixed ScssFilter getDependencies issue. (Supports
sass-globbing
gem) - Added PostCSS filter.
- Added
allowDebugMode
option for filters to allow some output filters run in debug mode. - Filter options are merged instead of overriding in
asset_compress.local.ini
. - Fixed several issues relating to path expansion.
- Allow underscored and non-underscored version of filenames in
@import
, inScssFilter::getDependencies
method.
Installation
Add this library to your application with composer, after that you can start integrating MiniAsset into your application and use the provided CLI tools to generate asset targets:
composer require 'clthck/mini-asset-improved'
or
php composer.phar require 'clthck/mini-asset-improved'
Framework Integrations
- CakePHP - AssetCompressImproved plugin.
Issues
Please report any issues you have with the plugin to the issue tracker on github.
License
Mini Asset Improved 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.