Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
AndreasThumfart opened this issue Feb 12, 2020 · 2 comments
Closed

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

AndreasThumfart opened this issue Feb 12, 2020 · 2 comments

Comments

@AndreasThumfart
Copy link

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.

@sindresorhus
Copy link
Owner

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

@AndreasThumfart
Copy link
Author

Thanks, that solves my problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants