singrana / yii2-less
Yii2 less compiler to assets
Installs: 13 790
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 4
Open Issues: 2
Type:yii2-extension
Requires
- php: >=5.4
- leafo/lessphp: 0.4.*
This package is not auto-updated.
Last update: 2025-04-26 19:44:49 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', ];