quangthinh / yii2-less
Yii2 less compiler to assets
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 4
Type:yii2-extension
Requires
- php: >=5.4
- leafo/lessphp: 0.4.*
This package is not auto-updated.
Last update: 2025-02-05 06:34:13 UTC
README
Yii2 less support
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist singrana/yii2-less "*"
or add
"singrana/yii2-less": "*"
to the require section of your composer.json
file.
Usage
Add or modify your Yii2 application config
'components' => [ 'assetManager' => [ 'converter' => [ 'class' => 'singrana\assets\Converter', ], ... ], ... ];
after this, you can usage in you bundles, for example:
public $css = [ 'css/style.less', ];