R
R
Rasul Gitinov2018-07-18 11:18:34
JavaScript
Rasul Gitinov, 2018-07-18 11:18:34

How to properly exclude files from the selection?

I don’t understand how it is possible to exclude JavaScript files in the build task, for example, I have it like this now:

return gulp.src([
    'app/libs/jquery.js',
    'app/libs/scrolloverflow.min.js',
    'app/libs/jquery.fullpage.js',
    'app/libs/*.js'
    ])

I need to exclude two files from the total selection.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2018-07-18
@raselgit

You should not have these files in the source folder at all.
You must install these packages with npm and process all vendors separately. Either glue them into a common file, or connect them separately, or in some other way.
If you want just that, then it will be easier to put them in a separate folder and not bother with the exception.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question