2017 © Pedro Peláez
 

craft-plugin craft-sass

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

image

imarc/craft-sass

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

  • Thursday, January 12, 2017
  • by jeffturcotte
  • Repository
  • 23 Watchers
  • 17 Stars
  • 1,211 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 5 Open issues
  • 8 Versions
  • 10 % Grown

The README.md

Sass Plugin for Craft

This is a Sass plugin for Craft using scssphp., (*1)

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

Installation

Installation requires composer. This plugn also is makes use of composer/installers to make the plugin composer compatible., (*3)

  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., (*4)

Linking to that file from a twig template should look something like this:, (*5)

<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., (*6)

Tests

To run the tests, be sure you have phpunit installed and then:, (*7)

composer install
phpunit

The Versions

12/01 2017

dev-master

9999999-dev https://github.com/imarc/craft-sass

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

  Sources   Download

Apache

The Requires

 

by Kevin Hamer

12/01 2017

1.0.6

1.0.6.0 https://github.com/imarc/craft-sass

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

  Sources   Download

Apache

The Requires

 

by Kevin Hamer

09/05 2016

1.0.5

1.0.5.0 https://github.com/imarc/craft-sass

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

  Sources   Download

Apache

The Requires

 

by Kevin Hamer

28/04 2016

1.0.4

1.0.4.0 https://github.com/imarc/craft-sass

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

  Sources   Download

Apache

The Requires

 

by Kevin Hamer

22/04 2016

1.0.3

1.0.3.0 https://github.com/imarc/craft-sass

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

  Sources   Download

Apache

The Requires

 

by Kevin Hamer

20/04 2016

1.0.2

1.0.2.0 https://github.com/imarc/craft-sass

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

  Sources   Download

Apache

The Requires

 

by Kevin Hamer

29/05 2015

dev-docroot-fix

dev-docroot-fix https://github.com/imarc/craft-sass

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

  Sources   Download

Apache

The Requires

 

by Kevin Hamer

11/03 2015

1.0.0

1.0.0.0 https://github.com/imarc/craft-sass-plugin

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

  Sources   Download

Apache

The Requires

 

by Kevin Hamer