gulp-bundle-assets
gulp-bundle-assets copied to clipboard
log error when no files found in stream
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.
This will eventually be built directly into gulp: https://github.com/gulpjs/gulp/issues/374
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 ?