gulp-bundle-assets icon indicating copy to clipboard operation
gulp-bundle-assets copied to clipboard

log error when no files found in stream

Open chmontgomery opened this issue 10 years ago • 2 comments

When no files found in a given bundle stream, i.e. no files match the src glob(s) defined, log an error so that the user doesn't accidentally create a mis-configured bundle config. NOTE: when CDN support is added, it may be valid to have a bundle with only a cdn url in it, meaning no files will be in the stream for that given bundle. Make sure this is handled appropriately by not logging an error for that case.

chmontgomery avatar Aug 04 '14 18:08 chmontgomery

This will eventually be built directly into gulp: https://github.com/gulpjs/gulp/issues/374

chmontgomery avatar Oct 10 '14 21:10 chmontgomery

It seems this was fixed years ago in glob-stream https://github.com/gulpjs/glob-stream/pull/41, but I still don't get errors when I put a path to a non existant file in my bundle config. Any idea why ?

pelletiermaxime avatar Aug 17 '21 23:08 pelletiermaxime