定制 zzplab/labscss 二次开发

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

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

zzplab/labscss

Composer 安装命令:

composer require zzplab/labscss

包简介

Extend scssphp/scssphp

README 文档

README

Extending Leafo\ScssPhp

Zzplab\LabScss\LabServer extends Leafo\ScssPhp\Server

Setting output/cache file name using method serve(), example:

$server->serve('app.min');

Zzplab\LabScss\LabCompiler extends Leafo\ScssPhp\Compiler

Solves an error when compiling Zurb/Foundation 6+ css framework @ Compiler.php:3122: leafo/scssphp#446

  public function get($name, $shouldThrow = true, Environment $env = null)
  {
  ...
    //$nextIsRoot = true;
  ...
  }

Install

composer require zzplab/labscss

Example use

<?php
require PATH_TO_VENDOR . '/vendor/autoload.php';

use Zzplab\LabScss\LabCompiler;
use Zzplab\LabScss\LabServer;

$scss = new LabCompiler();
$scss->setFormatter('Leafo\ScssPhp\Formatter\Compressed');
$server = new LabServer(__DIR__, __DIR__, $scss);
$server->serve('app.min');

In your browser you can use with or without .scss extension and set css versions on the fly speeding up development:

.../scss.php/app
.../scss.php/app.scss
.../scss.php/app/1.4.8
.../scss.php/app/1.4.8-dev

Checkout the Leafo/ScssPhp homepage, http://leafo.github.io/scssphp, for directions on how to use the scssphp compiler.

Note

My intention with this Leafo/ScssPhp wrapper is to make updating and maintainance easier for my self using composer and add some extra functions while they are not available (yet) in Leafo/ScssPhp itself.

Feel free to use it or respond with issue or request.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-10-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固