dazinator/NetPack

Exclude files

Closed this issue · 0 comments

At the moment you can specify files to include in Input for processing, but should extend this to also allow you to specify files to exclude. This will work with glob patterns just like the include list does.

This is useful for things like the Combine processor, which combines multiple input files into a new file. If you are outputting the new file alongside the existing files, and using a glob like .js to specify the inputs for processing, then this glob will match the combined file itself when the processor next runs - i.e bundle.js. Therefore its useful to be able to include ".js" but exclude "bundle.js" when defining the files that you want to be processed.