O
O
Oleg Obodin2018-02-06 15:12:57
gulp.js
Oleg Obodin, 2018-02-06 15:12:57

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 question

Ask a Question

731 491 924 answers to any question