Yii2 less support
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.
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',
];