Skip to content

Simultaneous sass compiler for Broccoli, using broccoli-sass-source-maps

License

Notifications You must be signed in to change notification settings

genkgo/broccoli-sass-simultaneous

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

broccoli-sass-simultaneous

With broccoli-sass-source-maps you can only transpile one scss file at a time (by using multiple trees). And because then every operation runs afters the other has finished, this can be very slow. This package transpiles the files simultaneously and therefore has significant performance improvements.

Because broccoli-sass-source-maps is used to compile the files you can use the same set of options as defined there.

Usage

var compileSass = require('broccoli-sass-simultaneous');

var outputTree = compileSass(inputTrees, inputToOutputMap, options);
  • inputTrees: An array of trees that act as the include paths for libsass. If you have a single tree, pass [tree].

  • inputToOutputMap: A hash with the inputFile as key and the outputFile as value.

  • options: A hash of options, see broccoli-sass-source-maps.

Example

const compile = require('broccoli-sass-simultaneous');

let tree = compile(
  ['include_dir1', 'include_dir2'],
  {
     'scss/file1.scss': 'css/file1.css'
  }
);

About

Simultaneous sass compiler for Broccoli, using broccoli-sass-source-maps

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published