cheshire137 / gulp-ruby-haml

Haml plugin for Gulp that uses the Ruby Haml gem.
https://www.npmjs.com/package/gulp-ruby-haml
MIT License
27 stars 13 forks source link

Gulp running haml for all all files when one is changed. #14

Open jjcall opened 9 years ago

jjcall commented 9 years ago

When running my haml task, it goes through all few hundred files i have. Is there a way to have it only run on the files I have changed?

Is it a gulp thing or is it specific to gulp-ruby-haml?

Here is my haml task

// Haml Task
gulp.task('haml', function(){
  gulp.src('web/templates/haml/**/*.haml', {read: true})
    .pipe(haml())
    .pipe(gulp.dest('web/templates/html/'))
    .pipe(liveReload());
});
AnalyzePlatypus commented 7 years ago

This is a gulp behavior. gulp-ruby-haml runs on whatever files you give it. You can select the changed files with the gulp-changed plugin. See the official Gulp docs on the subject here.

(This issue can be closed)