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