S
S
Sergey2018-07-20 19:25:35
gulp.js
Sergey, 2018-07-20 19:25:35

How to change the task for Gulp?

Good afternoon, I have a lot of files in the working folder css/scssand as many jsfiles, how can I do something when building to the working directory dist, only 1 style.cssand 1 index.min.js
are copied. Now everything that is in the folders src/assets/css/ and src/assets/js/
the task itself are copied

gulp.task('assets', function() {
  return gulp.src(['src/**',  '!src/assets/libs{,/**}', '!src/**/*.psd'], {since: gulp.lastRun('assets')})
    .pipe(newer('dist'))
    .pipe(gulp.dest('dist'));
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question