gulp-ruby-haml icon indicating copy to clipboard operation
gulp-ruby-haml copied to clipboard

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

Open jjcall opened this issue 10 years ago • 1 comments

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());
});

jjcall avatar Apr 27 '15 19:04 jjcall

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)

AnalyzePlatypus avatar Jul 09 '17 21:07 AnalyzePlatypus