JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q44696F
  • License MIT

Libsass-based Sass compiler for Broccoli

Package Exports

  • peer-deps-test

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (peer-deps-test) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

broccoli-sass

The broccoli-sass plugin compiles .scss and .sass files with libsass.

This is a fork of broccoli-sass that includes support for more options and provides (partial) support for source maps by embedding the content of the SASS source files in the source map using sourcesContent.

Be aware that the paths in the generated source map not correct, but this module does what I need until the underlying issue is resolved.

Installation

npm install --save-dev broccoli-sass-source-maps

Usage

var compileSass = require('broccoli-sass-source-maps');

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

  • inputFile: Relative path of the main .scss or .sass file to compile. Broccoli-sass expects to find this file in the first input tree (inputTrees[0]).

  • outputFile: Relative path of the output CSS file.

  • options: A hash of options for libsass. Supported options are: imagePath, indentedSyntax, omitSourceMapUrl, outputStyle, precision, sourceComments, sourceMap, sourceMapEmbed, and sourceMapContents.

Example

var appCss = compileSass(['styles', 'vendor'], 'myapp/app.scss', 'assets/app.css');