rackem/sass 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

rackem/sass

Composer 安装命令:

composer require rackem/sass

包简介

Sass middleware for Rackem

README 文档

README

Rack'em middleware to serve SASS dynamically.

Usage

<?php
# config.php

// Rack up the middleware and you are good to go!
\Rackem::use_middleware(new \Rackem\Sass());


// or map to a specific path
\Rackem::map("/css", function($env) {
	$sass = new \Rackem\Sass\Environment();
	$sass->append_path("src/sass");

	return $sass->call($env);
});

Options

You can pass an options array() with the middleware, or to a Rackem\Sass\Enviroment instance.

Option Info Default
accepts File extensions used to locate sass source files (order matters). array("sass", "scss", "scss.css", "sass.css", "css")
paths Paths used to locate sass source files (order matters). array(".")
persist If true, will serve compiled css file directly. If source sass file is newer than compiled file, the sass will be re-compiled before being served. false
public Path used to write compiled css if persist option is true. getcwd()
parser Array of options passed into Sass\Parser. array("cache" => false)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-11-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固