This is my first extention , and it's not very complete.
the extention compile and also minify the css code !
! this extention is developped and tested under yii 1.1.10
!! this compiler replace your bootstrap default files , for your first try you can save a copy of existing file just in case it not working for you !
extract file into protected/extentions/
Important : you have to declare the less extention in the preload config before bootstrap (it's required for buplishing assets of bootstrap) You also have to set
'debug' => true
if bootstrap config in order to publish assets .
Note that the compilation of less code is automatic every time ! for disabling it after all the less work is done , you need to comment (or remove) less entries from main.php config file
'preload'=>array( 'log', 'less', 'bootstrap', . . . ),
Add this entry in components :
'components'=>array( . . . 'less'=>array( 'class'=>'ext.less.components.LessCompiler', 'paths'=>array( 'protected/extensions/bootstrap/lib/bootstrap/less/bootstrap.less' => 'protected/extensions/bootstrap/assets/css/bootstrap.min.css', 'protected/extensions/bootstrap/lib/bootstrap/less/responsive.less' => 'protected/extensions/bootstrap/assets/css/bootstrap-responsive.min.css', ), ), . . . )
hope that will help you !