broccoli-compass

Sass-compass plugin for Broccoli

Usage no npm install needed!

<script type="module">
  import broccoliCompass from 'https://cdn.skypack.dev/broccoli-compass';
</script>

README

broccoli-compass Build Status Code Climate

Compiles compass project using compass, so you need to have compass installed on your machine.

Installation

npm install --save-dev broccoli-compass

Tests

npm install
npm test

Usage

Note: The API might change in subsequent 0.x versions.

var compileSass = require('broccoli-compass');
var compassTree = compileSass(tree, {
    outputStyle: 'expanded'
  });

if files is omitted the entire folder will be compiled.

Plugin Options
  • compassCommand: Command to execute compass. Default to compass.
  • ignoreErrors: If set to true, Broccoli will only print the error instead of raising an exception. Default to false
  • cleanOutput (slower): if true, css files will be processed to extract the list of images and fonts to be copied, instead the destination folder will contain all files. Default to false
  • exclude [DEPRECATED]: deprecated in favor of cleanOutput option.
Compass Options

Please refer to the compass configuration for more details about the available options

Credits

License

MIT