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