singrana/yii2-assetconverter

Yii2 assets compiler

dev-master 2018-06-05 18:39 UTC

This package is not auto-updated.

Last update: 2024-05-03 20:17:59 UTC


README

Yii2 assets compiler Currently support less

change less compiler "leafo/lessphp" to "oyejorge/less.php" for support bootstrap less

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist singrana/yii2-assetconverter "*"

or add

"singrana/yii2-assetconverter": "*"

to the require section of your composer.json file.

Usage

Add or modify your Yii2 application config

'components'    =>
[
	'assetManager'					=>
	[
		'converter'					=>
		[
			'class'					=>	'singrana\assetConverter\Converter',
		],
	...
	],
	...
];

after this, you can usage in you bundles, for example:

	public $css =
	[
		'css/style.less',
	];