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).
$ jspm install scss=github:theefer/plugin-sass
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.