gulp-sass-plotter
Version:
Gulp adapter for sass-plotter.
43 lines (35 loc) • 1.1 kB
Markdown
gulp-sass-plotter
=================
A [sass-plottter][plotter] adapter for gulp.
Install it with [npm][npm]
```bash
$ npm install gulp-sass-plotter
```
```js
var gulp = require('gulp');
var watch = require('gulp-watch');
var sass = require('gulp-sass');
var plotter = require('gulp-sass-plotter');
gulp.src("./test/scss/**/*.scss")
.pipe(watch("./test/scss/**/*.scss"))
.pipe(plotter())
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest("./css"));
```
This will pass all the file through and also will stream all dependent files
of the .scss files.
You can pass options into plotter like so...
```js
...
.pipe(plotter(options))
...
```
Options are those of [sass-import-resolve][import-resolve]. You could save some cpu
by passing ```resolveSass : false```. This will not look for files with `.sass`
extension, only `.scss` files. See [sass-import-resolve][import-resolve] for more info.
[]: https://npmjs.org/package/sass-plotter/
[]: https://npmjs.org/package/sass-import-resolve/
[]: https://npmjs.org