Answer the question
In order to leave comments, you need to log in
How to exclude multiple files from gallp in the same processing folder?
gulp.task('javascript', () => {
return gulp.src(['../js/**/*.js', '!../gulp-dev/**', '!../js/minjs', '!../js/main.js', '!../js/bundle.js' ])
.pipe(jshint({esnext: true}))
.pipe(jshint.reporter('default'))
.pipe(uglify())
.pipe(rename({suffix: '.min'}))
.pipe(gulp.dest(js + '_min.js'));
});
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