1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-04-20 04:21:58 +02:00

gulp package: fixing encoding after updating to gulp 5

Took inspiration from this issue: https://github.com/sindresorhus/gulp-zip/issues/123
This commit is contained in:
Denny Biasiolli 2024-10-22 23:07:34 +02:00
parent 16ac4b0067
commit c9ad332057
No known key found for this signature in database

View File

@ -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('./'))
}))