Added resizing images for boxart and icons in gulpfile.

This commit is contained in:
chris062689 2017-06-04 14:28:06 -04:00
parent 00648ed975
commit cc9a2ca84b
1 changed files with 6 additions and 0 deletions

View File

@ -58,6 +58,12 @@ gulp.task('images', ['hugo'], () => (
gulp.src(`${distPath}/images/banners/*`, {base: './'})
.pipe(jimp({ sizes: [{"width": 824, "height": 306 }] }))
.pipe(gulp.dest('./'))
gulp.src(`${distPath}/images/game/boxart/*`, {base: './'})
.pipe(jimp({ sizes: [{"width": 328, "height": 300 }] }))
.pipe(gulp.dest('./'))
gulp.src(`${distPath}/images/game/icons/*`, {base: './'})
.pipe(jimp({ sizes: [{"width": 48, "height": 48 }] }))
.pipe(gulp.dest('./'))
));
gulp.task('html', ['hugo', 'css', 'images'], () => (