Skip to content

yogas/enb-sass

This branch is 5 commits ahead of enb/enb-sass:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Vladimir Shapovalov
Feb 27, 2022
56b760d · Feb 27, 2022

History

68 Commits
Feb 27, 2022
Feb 20, 2022
Apr 6, 2015
Apr 7, 2015
Feb 27, 2022
Feb 26, 2022

Repository files navigation

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

  • String target contains target file name. Default: ?.css
  • String filesTarget contains file masks, according to which a list of source files is created. Default: ?.files.
  • Array sourceSuffixes Files suffixes that will be used. Default: css
  • Object sass sass options. Read more: SharedOptions, FileOptions, StringOptions. Default: default sass options.

Usage

Default use

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

Collecting only scss files

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

Use sass compression

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

Collecting ie and ie8 css/scss files with sass compression

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

Used in

Thanks

  • Abramov Andrew (@blond). For the support and correct answers.
  • Filatov Dmitry (@dfilatov). For vow, vow-fs, inherit.
  • Georgy Krasulya (@gkrasulya). For rich error reporting.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%