1.0.0 • Published 6 years ago

gulp-sass-grapher v1.0.0

Weekly downloads
1,187
License
BSD-3-Clause
Repository
github
Last release
6 years ago

Gulp Sass Grapher Build Status NPM version

Dependency Status devDependency Status

A gulp plugin for passing only the root SASS files down the stream. Unlike other plugins this one accounts for rebuilding the graph index when new files are added along with a manual API to rebuild the index.

Sass Graph plugin for gulp 3.

Install

Install with npm

npm install --save-dev gulp-sass-grapher

Example

Here is an example using gulp-sass-grapher with gulp-watch.

  var sassGrapher = require('gulp-sass-grapher'),
    gulp = require('gulp'),
    path = require('path'),
    watch = require('gulp-watch');

  gulp.task('watch-styles', function() {
    var loadPaths = path.resolve('src/sass');
    sassGrapher.init('src/sass', { loadPaths: loadPaths })
    return watch('src/sass/**/*.scss', { base: path.resolve('src/sass') })
      .pipe(sassGrapher.ancestors())
      .pipe(sass({
        includePath: loadPaths
      }))
      .pipe(gulp.dest('dist/css'))
  })
1.0.0

6 years ago

0.1.4

9 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago