Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 2.21 KB

README.md

File metadata and controls

50 lines (41 loc) · 2.21 KB

karma-scss-preprocessor

Latest Stable Version License NPM Downloads

Build Status Test Coverage dependencies Status devDependencies Status peerDependencies Status

Karma preprocessor to compile Sass files on the fly with node-sass. In contrast of karma-sass-preprocessor, it does not write any intermediate file to the disk, and does not use any Gulp plugin.

Installation

npm install karma-scss-preprocessor node-sass --save-dev

Note: since v2.0, node-sass is used as a peer dependency. That is why you need to install it along with this module.

Configuration

See node-sass options for more details.

module.exports = function (config) {
  config.set({
    preprocessors: {
      'src/**/*.scss': ['scss']
    },
    scssPreprocessor: {
      options: {
        sourceMap: true,
        includePaths: ['bower_components']
      }
    }
  });
};