Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
Workaround for bug in gulp-zip
Browse files Browse the repository at this point in the history
There's a known issue with gulp-zip that means that failing to use the nodir: true parameter means that the zip file doesn't extract correctly once uploaded to AWS Lambda. The change ensures this works as expected. See the thread here: sindresorhus/gulp-zip#64
  • Loading branch information
jamesgawn authored Nov 5, 2017
1 parent 6fb35e1 commit 6946542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ gulp.task('node-mods', function() {
});

gulp.task('zip', function() {
return gulp.src(['dist/**/*', '!dist/package.json'])
return gulp.src(['dist/**/*', '!dist/package.json'], {nodir: true})
.pipe(zip('dist.zip'))
.pipe(gulp.dest('./'));
});
Expand Down

0 comments on commit 6946542

Please sign in to comment.