yii2-extension yii2-assets-optimizer
Unifies and compresses js and css files in your AssetBundles. Uses internal server cache to speed up all the process, reducing the time wasting.
slinstj/yii2-assets-optimizer
Unifies and compresses js and css files in your AssetBundles. Uses internal server cache to speed up all the process, reducing the time wasting.
- Saturday, June 4, 2016
- by slinstj
- Repository
- 3 Watchers
- 2 Stars
- 84 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 3 Open issues
- 5 Versions
- 12 % Grown
Yii 2 Assets Optimizer
Fast and reliable unifier and compressor for CSS and JS files inside your Yii2 AssetBundles.
Uses internal server cache to speed up all the process, reducing the time wasting., (*1)
Report your issues
GitHub issues., (*2)
Installation
composer require "slinstj/yii2-assets-optimizer:>=0.1-stable"
Configuration/Usage
<?
return [
// ...
'components' => [
// ...
'view' => [
'class' => '\slinstj\assets\optimizer\View',
]
]
];
Additional Options
<?
return [
// ...
'components' => [
// ...
'view' => [
'class' => '\slinstj\assets\optimizer\View',
'minify' => true, // Could be '!YII_DEBUG' for example.
'publishPath' => '@webroot/yao', // Folder where optimized file(s) will be published in.
'publishUrl' => '@web/yao', // Web acessible url. Must be in accord to 'publishPath'.
]
]
];
Next versions
- To improve cache by using ChainedDependency - On change JS and CSS files, the optimized
file(s) will be regenerated automatically. For now, you should clear the cache manually.
Please, check this to know how: cache-flushing.
- To use events instead of the own View object;
, (*3)
dev-master
9999999-dev
https://github.com/slinstj/yii2-assets-optimizer
Unifies and compresses js and css files in your AssetBundles. Uses internal server cache to speed up all the process, reducing the time wasting.
Sources
Download
MIT
The Requires
The Development Requires
by
Sidney Lins
yii2
assets
minify
combine
dev-develop
dev-develop
https://github.com/slinstj/yii2-assets-optimizer
Unifies and compresses js and css files in your AssetBundles. Uses internal server cache to speed up all the process, reducing the time wasting.
Sources
Download
MIT
The Requires
The Development Requires
by
Sidney Lins
yii2
assets
minify
combine