E
E
Extramezz2016-06-17 19:10:03
gulp.js
Extramezz, 2016-06-17 19:10:03

How to select all .js files in gulp but ignore .min.js?

Example: in the dir folder there are files file.jsand, file.min.jswell, a bunch of other things. I want to get only file.js'similar ones: For some reason, the
code gulp.src(["dir/*.js", "!*.min.js"])also returns those that min.js. Why? How to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2016-06-17
@Extramezz

For now, you will ignore all minified files in the root. It looks like you need something like this:gulp.src(["dir/*.js", "!dir/*.min.js"])

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question