vtalbot/less
最新稳定版本:1.2
Composer 安装命令:
composer require vtalbot/less
包简介
LESS compiler for Laravel 4
关键字:
README 文档
README
Installation
Add to your composer.json those lines
"require": {
"vtalbot/less": "1.*"
}
Run php artisan config:publish vtalbot/less
Then edit config.php in app/packages/vtalbot/less to your needs.
Update app/config/app.php with:
'providers' => array(
...
'VTalbot\Less\LessServiceProvider',
),
...
'aliases' => array(
...
'Less' => 'VTalbot\Less\Facades\Less',
),
Usage
<link rel="stylesheet" href="css/test.css">
If css/test.css doesn't exists in the public directory, it will search for test.less in app/less (changeable in config.php) directory.
If found, compile it if needed and return the result.
Less::make('file-in-less-directory');
Changelog
1.2
- Changed configuration prefix to an array to check more than one path
- Clean up
1.1
- Check if a change has occured in imported less files
统计信息
- 总下载量: 540
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-01-22