dev-master
9999999-devSimple LESS compiler for Laravel
MIT
The Requires
- php >=5.3.0
- oyejorge/less.php ~1.5
by Jacek Berbecki
laravel less
Wallogit.com
2017 © Pedro Peláez
Simple LESS compiler for Laravel
LaLess is a Simple LESS compiler for Laravel 4 based on a PHP port (Less.php / oyejorge/less.php) of the official LESS processor http://lesscss.org., (*1)
In the require key of your composer.json app file add the following line:, (*2)
"berbecki/laless": "dev-master"
Then, run in terminal the Composer update comand:, (*3)
$ composer.phar update
In your config/app.php add line 'Berbecki\Laless\ServiceProvider' to the end of the $providers array, (*4)
'providers' => array(
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
'Illuminate\Auth\AuthServiceProvider',
...
'Berbecki\Laless\ServiceProvider',
),
You are ready to go! Your application will now compile your LESS files when needed., (*5)
By default, Laless will consider the directory public/assets/less as the input and public/assets/css for the output. But if you wish to change these values simply publish the package config files:, (*6)
$ php artisan config:publish berbecki/laless
and define the origin and destination keys in config/packages/berbecki/laless/config.php. For example:, (*7)
// config/packages/berbecki/laless/config.php // Paths should be relative to app folder. 'origin' => 'mylessfiles', 'destination' => '../public/mycss',
If for some reason you need to force the compilation of LESS files (ex: in production environment), its possible through the command:, (*8)
$ php artisan laless:compile
Laless is a free software distributed under the terms of the MIT license, (*9)
If you have a questions, feel free to contact with me., (*10)
Simple LESS compiler for Laravel
MIT
laravel less