Files without name are ignored during zip (e.g. ".txt")

#116 · closed · 2 comments

View on GitHub ↗

AndreasThumfart

As the title says, files which only have and ending, but no actual name, like .txt, .xml or .config are ignored during packaging. Error is reproducable the following way: File structure: Folder "test" with two files: ".txt" and "test.txt" Command used: gulp.src("./test/**") .pipe(zip("test.zip")) .pipe(gulp.dest(".")) Zip file "test.zip" including the file "test.txt" is created. File ".txt" is missing.

Comments

sindresorhus

You want the `dot` option: https://gulpjs.com/docs/en/api/src

AndreasThumfart

Thanks, that solves my problem!