Fix image encoding issue during packaging
This commit is contained in:
@@ -46,14 +46,18 @@ gulp.task('package-copy', () => {
|
||||
'readme.txt'
|
||||
], {
|
||||
base: './',
|
||||
allowEmpty: true
|
||||
allowEmpty: true,
|
||||
encoding: false,
|
||||
})
|
||||
.pipe(filter((file) => !file.path.includes('/node_modules')))
|
||||
.pipe(gulp.dest(`./${NAME}/`));
|
||||
});
|
||||
|
||||
gulp.task('package-zip', () => {
|
||||
return gulp.src(`${NAME}/**/*`, { base: './' })
|
||||
return gulp.src(`${NAME}/**/*`, {
|
||||
base: './',
|
||||
encoding: false,
|
||||
})
|
||||
.pipe(zip(`${NAME}.zip`))
|
||||
.pipe(gulp.dest('./'));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user