enb / enb-sass

MIT License
12 stars 7 forks source link

enb-sass npm version node-sass supports version Build Status Dependency Status

Provides the node-sass features for project-builder enb (https://github.com/enb-make/enb).

Installing

npm install enb-sass --save

Options

Usage

Default use

nodeConfig.addTech([
  require('enb-sass')
]);

Collecting only scss files

nodeConfig.addTech([
  require('enb-sass'), {
    target: '?.css',
    sourceSuffixes: ['scss']
  }
]);

Use node-sass compression and debug mode

nodeConfig.addTech([
  require('enb-sass'), 
  {
    target: '?.css',
    sourceSuffixes: ['scss'],
    sass: {
      outputStyle: 'compressed',
      sourceComments: true
    }
  }
]);

Collecting ie and ie8 css/scss files with node-sass compression and debug mode

nodeConfig.addTech([
  require('enb-sass'), 
  {
    target: '?.css',
    sourceSuffixes: ['css', 'scss', 'ie.css', 'ie.scss', 'ie8.css', 'ie8.scss'],
    sass: {
      outputStyle: 'compressed',
      sourceComments: true
    }
  }
]);

Used in

Thanks