Answer the question
In order to leave comments, you need to log in
How to change the task for Gulp?
Good afternoon, I have a lot of files in the working folder css/scss
and as many js
files, how can I do something when building to the working directory dist
, only 1 style.css
and 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 questionAsk a Question
731 491 924 answers to any question