karma-scss-preprocessor

4.0.0 • Public • Published

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

Package Sidebar

Install

npm i karma-scss-preprocessor

Weekly Downloads

3,124

Version

4.0.0

License

ISC

Unpacked Size

13.3 kB

Total Files

6

Last publish

Collaborators

  • amercier