Download the PHP package cornernote/yii-asset-compress without Composer
On this page you can find all versions of the php package cornernote/yii-asset-compress. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cornernote/yii-asset-compress
More information about cornernote/yii-asset-compress
Files in cornernote/yii-asset-compress
Package yii-asset-compress
Short Description Command to merge and minify assets for Yii
License BSD-3-Clause
Informations about the package yii-asset-compress
Yii Asset Compress
Command to merge and minify assets for Yii.
Features
- Merges and minifies lists of CSS or JS files into a single CSS or JS files.
- Replaces releative
url()
in CSS files - Publishes required assets so that relative assets are available
Installation
Please download using ONE of the following methods:
Composer Installation
All requirements are automatically downloaded into the correct location when using composer. There is no need to download additional files or set paths to third party files.
Get composer:
Install latest release OR development version:
Add the vendor
folder to the aliases
in your yii configuration:
Manual Installation
Download the latest release or development version and move the commands/AssetCompressCommand.php
file into your protected/commands
folder.
In addition the following are required:
Configuration
Add to your yii console config:
Compressing Assets
Run using your yiic
command:
Using Assets
To display your combined assets on your page you can use the following in your layout file:
Supressing Merged Assets
Now that you have jQuery and Bootstrap (and others) merged, you don't want them to output. One method is to overwrite CClientScript:
Set this up in your config as follows:
Resources
Support
- Does this README need improvement? Go ahead and suggest a change.
- Found a bug, or need help using this project? Check the open issues or create an issue.
License
BSD-3-Clause, Copyright � 2017 Mr PHP