less/scss compiler, based on oyejorge/less.php and leafo/scssphp, for cotonti cmf siena 0.9.18. Support cached compile, forced compile, @import files, automatic recompilation if you change any @import file.
- copy the files in the plugins directory.
- Install the plugin through admin panel.
- Register your less or scss file in mytheme.rc.php
example:
//themes/mytheme/mytheme.rc.php
// less
Resources::addFile($cfg['themes_dir'].'/'.$usr['theme'].'/bootstrap/less/bootstrap.less', 'less');
// or scss
Resources::addFile($cfg['themes_dir'].'/'.$usr['theme'].'/bootstrap/scss/bootstrap.scss', 'scss');
be sure to specify the second parameter file extension "less/scss".
- Enable debug mode in the file "datas/config.php"
//datas/config.php
$cfg['debug_mode'] = true;
- Send your request to the server with a parameter vlessforce = 1 **example: http://mydomain/index.php?vlessforce=1 **