sass-pathfinder

A tiny includePaths resolver for node-sass

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
sass-pathfinder
0.0.58 years ago8 years agoMinified + gzip package size for sass-pathfinder in KB

Readme

sass-pathfinder Build Status npm version
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.