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

dev-master 2017-12-30 10:42 UTC

This package is not auto-updated.

Last update: 2024-05-15 03:13:29 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',
	];