Closed kidesigner closed 9 years ago
Pretty sure this is related to https://github.com/sindresorhus/gulp-zip/pull/46.
Please help me.
Are you trying to compress any empty folders?
My project:
css js node_modules gulpfile.js index.php
and here is gulpfile content:
gulp.task('zip', function () { return gulp.src('css/*') .pipe(zip('archive.zip')) .pipe(gulp.dest('dist')); });
Can you try installing this module directly from github (npm install https://github.com/sindresorhus/gulp-zip/archive/master.tar.gz
) and try again?
Solve! It's working! thank you with your rocket support!
Sweet! :) @sindresorhus, can we get a new release on this?
:+1: this would be good to get a fix out for :smile:
I have error with your example code:
node_modules/gulp-zip/node_modules/yazl/index.js:65 entry.uncompressedSize = buffer.length; ^ TypeError: Cannot read property 'length' of null