mirror of
https://github.com/yuzu-emu/yuzu-emu.github.io.git
synced 2025-07-27 12:11:56 +00:00
gulpfile: iterate over all the content folder to ...
... find png images
This commit is contained in:
parent
ac9e49a4c6
commit
8ed9d7f1ba
|
@ -51,10 +51,10 @@ gulp.task('assets:images', () => {
|
|||
const screenshotImages = gulp.src('build/images/screenshots/*')
|
||||
.pipe(imageResize({width: 640, height: 360, crop: false}))
|
||||
.pipe(gulp.dest('build/images/screenshots/thumbs'));
|
||||
const postImages = gulp.src('build/entry/*/*.png')
|
||||
const postImages = gulp.src('build/**/*.png')
|
||||
.pipe(parallel(imageResize({quality: 0.8, format: 'jpg', percentage: 80})), os.cpus().length)
|
||||
.pipe(rename({extname: '.png.jpg'}))
|
||||
.pipe(gulp.dest('build/entry/'));
|
||||
.pipe(gulp.dest('build/'));
|
||||
|
||||
return merge(baseImages, jumbotronImages, bannerImages, boxartImages, iconImages, screenshotImages, postImages);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue