tschaub / gulp-newer

Pass through newer source files only
https://npmjs.org/package/gulp-newer
226 stars 24 forks source link

help making it work #44

Open CydGoblin opened 8 years ago

CydGoblin commented 8 years ago

I have this task, but even if the files is not newer it keeps passing. I think gulp-rename is the culprit, seems to work when I remove it but shouldn't it work?

gulp.task('minStyles', function(){
  return gulp.src('./src/assets/css/*.css')
    .pipe(newer('./dist/assets/css/'))
    .pipe(rename({suffix: '.min'}))
    .pipe(minifycss())
    .pipe(gulp.dest('./dist/assets/css/'));
});