sassy-bits
sass transform plugin for bit-imports
This plugin uses sass.js to do the heavy lifting. Using sass.js gives us the ability to transpile scss right in the browser.
Install
npm install sassy-bits -D
For sassy-bits to work correctly, you must also install sass.js
.
npm install sass.js -D
Sample configuration
/* jshint unused: false, undef: false */var System = {// Get the extension rule matchesvar extension = bitimportsRulematcherextension;// Create instance of bitimportsvar importer = bitimports;// Make sure we configure the builtin `js` plugin to only process// js files... Add other extensions that need to be processed by// the js pipeline right here.importer;// Setup sass pipeline to process all files with css and scss// extensionsimporter;return importer;};var require = Systemrequire;// Now we can import css and scss files;
Sassy options
All sass options must be in a sass
object, which is passed directly to the compiler.
importer;
For a list of available options, please take a look here.