W
W
web-quest32016-12-22 00:04:10
JavaScript
web-quest3, 2016-12-22 00:04:10

Uglifyjs duplicate files?

gulp.task('build', function () {
return gulp.src('app/html/*.html')
.pipe(useref())
.pipe(gulpif('*.js', uglify()))
.pipe(gulpif('*.css', cssnano()))
.pipe(gulp.dest('dist'));
});
the code is correct, but for some
reason a double occurs, it writes the same script 2 times into two different files (once in each)
At the same time, some files do not press at all

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