定制 rrcom/rrcom-less-module 二次开发

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

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

rrcom/rrcom-less-module

最新稳定版本:v1.1.0

Composer 安装命令:

composer require rrcom/rrcom-less-module

包简介

CSS LESS compiler module for Zend Framework 2

README 文档

README

Zend frameword 2 module that automatically compile LESS file to CSS

How to use

  1. Save this module to your module directory
  2. add "RrcomLessModule" in your zf2 config inside the modules array (config/application.config.php)
  3. create "rrcomlessmodule.local.php" in config/autoload directory
  4. populate "rrcomlessmodule.local.php" with this example value
<?php
return array(
    'rrcomlessmodule' => array(
        // enable or disable auto compiling (must be disable in production environment to reduce processing time)
        'enable' => true,
        
        // The files to compile and theirs output directory
        'files' => array(
            array(
                // .less source directory 1
                'less-file' => './public/less/sample1.less',
                
                // .css output directory 1
                'css-file' => './public/css/sample1.css',
                
                /*
                * Set formatter
                * lessjs (default) — Same style used in LESS for JavaScript
                * compressed — Compresses all the unrequired whitespace
                * classic — lessphp’s original formatter
                */
                'formatter' => 'compressed',
            ),
            
            // If you need to compile multiple less files just add another array
            array(
                // .less source directory 2
                'less-file' => './public/less/sample2.less',
                
                // .css output directory 2
                'css-file' => './public/css/sample2.css',
                
                // Set formatter
                'formatter' => 'compressed',
            ),
        ),
    ),
);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-10-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固