F
F
freeman02042017-10-05 16:47:25
Building projects
freeman0204, 2017-10-05 16:47:25

Why gulp collects pug and scss in 5 - 10 seconds?

My tasks are below. What should I change in them so that they rebuild only what I changed, and not everything that is?

gulp.task('jade', function() {
    return gulp.src('source/include/**/*.jade')
        .pipe(jade())
        .pipe(gulp.dest('public'));
});

gulp.task('styles', function () {
  return gulp.src('source/styles/scss/**/*.scss')
    .pipe(sass())
    .pipe(rename('all.min.css'))
    .pipe(gulp.dest('public/css'))
});

59d637a9a864d013401484.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zooks, 2017-10-05
@freeman0204

renameneed to do after dest.
Yes, and renaming all files into one is stupid. Glue into one first.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question