Answer the question
In order to leave comments, you need to log in
Gulp. Why doesn't it take css and js files when executing a task?
gulp.task('useref', function(){
return gulp.src('app/*.html')
.pipe(useref())
.pipe(gulpIf('*.js', uglify()))
.pipe (gulpIf('*.css', cssnano()))
.pipe(gulp.dest('dist'))
});
When executing, the task takes only html files ... how to make it take all the rest?
Answer the question
In order to leave comments, you need to log in
return gulp.src('app/*.html') you have a template and says to take only html files
and in general you have to return at the beginning
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question