theefer / plugin-sass

Sass plugin for System.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SystemJS Sass plugin

A Sass loader plugin for SystemJS, based on sass.js.

This plugin allows importing SCSS files from SystemJS and have them dynamically compiled to CSS and loaded into the page from within the browser. Alternatively, the SCSS files can also be converted to CSS statically by creating bundles with JSPM.

Warning: this plugin is in alpha version, has no error reporting mechanism yet and has some blocking bugs (see Issues).

Installation

$ jspm install scss=github:theefer/plugin-sass

Usage

Add a dependency to a .scss file from within your JavaScript files, followed by a ! to trigger the use of this plugin:

// ES6
import 'styles.scss!';

// or AMD
define(['styles.scss!'], function(){ ... });

// or CommonJS
require('styles.scss!');

The corresponding compiled CSS should be injected into the <head> of the document.

About

Sass plugin for System.js


Languages

Language:JavaScript 100.0%