imarc/craft-sass 问题修复 & 功能扩展

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

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

imarc/craft-sass

Composer 安装命令:

composer require imarc/craft-sass

包简介

A Craft plugin that compiles SASS on the server as needed.

README 文档

README

This is a Sass plugin for Craft using scssphp.

It compiles SASS to CSS on the fly, and caches the results to disk until the file changes.

Installation

Installation requires composer. This plugn also is makes use of composer/installers to make the plugin composer compatible.

  1. In the root of your project, run composer require imarc/craft-sass.This will create a vendor/ directory as well as automatically put the plugin it self in craft/plugins/sass/.
  2. Upload both the vendor/ and craft/plugins/sass/ directories.
  3. Enable the plugin in the Craft Plugins panel.

Usage

Upload SCSS files within your document root. For example, public/css/styles.scss.

Linking to that file from a twig template should look something like this:

<link rel="stylesheet" type="text/css" href="{{ craft.sass.link('/css/styles.scss') }}" media="all" />

craft.sass.link() generates a link that is routed to the plugin, which in turn compiles the SASS file into CSS.

Tests

To run the tests, be sure you have phpunit installed and then:

composer install
phpunit

统计信息

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

GitHub 信息

  • Stars: 14
  • Watchers: 24
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: Apache
  • 更新时间: 2016-04-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固