소스 검색

gulp package: fixing encoding after updating to gulp 5

Took inspiration from this issue: https://github.com/sindresorhus/gulp-zip/issues/123
Denny Biasiolli 6 달 전
부모
커밋
c9ad332057
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      gulpfile.js

+ 1 - 1
gulpfile.js

@@ -288,7 +288,7 @@ gulp.task('package', gulp.series(async () => {
     if (fs.existsSync('./images')) dirs.push('./images/**');
     if (fs.existsSync('./slides')) dirs.push('./slides/**');
 
-    return gulp.src( dirs, { base: './' } )
+    return gulp.src( dirs, { base: './', encoding: false } )
     .pipe(zip('reveal-js-presentation.zip')).pipe(gulp.dest('./'))
 
 }))