sass-pathfinder
v0.0.5
Published
A tiny includePaths resolver for node-sass
Downloads
3,932
Readme
sass-pathfinder
A tiny robust includePath resolver for node-sass
Install
npm install sass-pathfinder --save-dev
Basic Usage
Pathfinder needs to be imported into your sass pipeline. Below is an example using Gulp:
var gulp = require('gulp');
var sass = require('gulp-sass');
var pathfinder = require('sass-pathfinder');
gulp.task('sass', function () {
return gulp.src('./sass/**/*.scss')
.pipe(sass({
includePaths: pathfinder(
'./source-a',
['../source-b', 'source-c/source-c1']
)
}))
.pipe(gulp.dest('./css'));
});
Options
pathfinder(arguments)
Type: String
, Array
| Default: []
Pass along strings or arrays as arguments to pathfinder.