Skip to content

theefer/plugin-sass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published