定制 berbecki/laless 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

berbecki/laless

Composer 安装命令:

composer require berbecki/laless

包简介

Simple LESS compiler for Laravel

README 文档

README

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.

Quick start

Required setup

In the require key of your composer.json app file add the following line:

"berbecki/laless": "dev-master"

Then, run in terminal the Composer update comand:

$ composer.phar update

In your config/app.php add line 'Berbecki\Laless\ServiceProvider' to the end of the $providers array

'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.

Configuration (is optional but recommended)

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:

$ php artisan config:publish berbecki/laless

and define the origin and destination keys in config/packages/berbecki/laless/config.php. For example:

// config/packages/berbecki/laless/config.php

// Paths should be relative to app folder.
'origin'        => 'mylessfiles',
'destination'   => '../public/mycss',

Console usage

If for some reason you need to force the compilation of LESS files (ex: in production environment), its possible through the command:

$ php artisan laless:compile

License

Laless is a free software distributed under the terms of the MIT license

Aditional information

If you have a questions, feel free to contact with me.

统计信息

  • 总下载量: 1.42k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固