Skip to content

amercier/karma-scss-preprocessor

Repository files navigation

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']
      }
    }
  });
};

About

Karma preprocessor to compile SCSS on the fly with node-sass

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •