Skip to content
This repository has been archived by the owner. It is now read-only.
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

component-sass

A plugin to transpile Sass files for the component builder.

Install

$ npm install segmentio/component-sass#0.0.3

Usage

Add your .sass or .scss files to the styles array in your component.json:

{
  "styles": [
    "base.sass",
    "button.scss"
  ]
}

Use the plugin during your build process:

var fs      = require('fs')
  , Builder = require('component-builder')
  , sass    = require('component-sass');

var builder = new Builder(__dirname);

builder.use(sass);

builder.build(function(err, res){
  if (err) throw err;
  fs.writeFileSync('build/build.js', res.require + res.js);
  if (res.css) fs.writeFileSync('build/build.css', res.css);
});

About

A plugin to transpile Sass files for the component builder.

Resources

Packages

No packages published
You can’t perform that action at this time.