Answer the question
In order to leave comments, you need to log in
How to use gulpzip?
Hello. Help, otherwise I'm already confused
. I have the following folder structure:
/assets
/css
/js
/node_modules
/wp
index.html
gulp.task('deployment', function() {
return gulp.src(['assets/**/*', 'index.html'])
.pipe(zip('_files.zip'))
.pipe(gulp.dest('./'));
});
Answer the question
In order to leave comments, you need to log in
And so?
gulp.task('deployment', function() {
return gulp.src(['assets/**/*', 'index.html'], { base: '.' })
.pipe(zip('_files.zip'))
.pipe(gulp.dest('./'));
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question