0.0.5 • Published 8 years ago

sass-pathfinder v0.0.5

Weekly downloads
417
License
MIT
Repository
-
Last release
8 years ago

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.