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
- Host: GitHub
- URL: https://github.com/itsjonq/sass-pathfinder
- Owner: ItsJonQ
- License: mit
- Created: 2016-06-23T21:33:36.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-07T03:01:29.000Z (almost 10 years ago)
- Last Synced: 2025-03-03T08:15:24.236Z (over 1 year ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sass-pathfinder [](https://travis-ci.org/ItsJonQ/sass-pathfinder) [](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.