Skip to content

xzyfer/gulp-sass-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Read the import graph from passed sass files to work with dependencies

Only pass along Sass files that have changed, along with dependencies.

Install

Install with npm

npm install --save-dev gulp-sass-graph

Example

gulp.task('watch-sass', function(cb) {
  return watch({glob:'resources/assets/css/**/*.scss', emitOnGlob: false, name: "Sass"})
    .pipe(sassGraph(sassLoadPaths))
    .pipe(sass({loadPath: sassLoadPaths}))
    .pipe(notify('Sass compiled <%= file.relative %>'))
    .pipe(gulp.dest('web/dist/css'))
    .pipe(livereload());
});

License

MIT © Lachlan Donald

About

Sass-import-aware gulp plugin for when sass files change

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published