An open API service indexing awesome lists of open source software.

https://github.com/itsjonq/sass-pathfinder

A tiny includePath resolver for node-sass
https://github.com/itsjonq/sass-pathfinder

Last synced: 12 months ago
JSON representation

A tiny includePath resolver for node-sass

Awesome Lists containing this project

README

          

# sass-pathfinder [![Build Status](https://travis-ci.org/ItsJonQ/sass-pathfinder.svg?branch=master)](https://travis-ci.org/ItsJonQ/sass-pathfinder) [![npm version](https://badge.fury.io/js/sass-pathfinder.svg)](https://badge.fury.io/js/sass-pathfinder)

A tiny robust includePath resolver for [node-sass](https://github.com/sass/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:

```javascript
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.