Adding thumbnails to all screenshots.

This commit is contained in:
chris062689
2017-06-24 15:34:51 -04:00
parent 5dffd58561
commit 1a41025f95
3 changed files with 8 additions and 2 deletions

View File

@ -9,6 +9,7 @@ const postcss = require('gulp-postcss');
const cssImport = require('postcss-import');
const cssnext = require('postcss-cssnext');
const cleanCSS = require('gulp-clean-css');
const rename = require("gulp-rename");
const imageResize = require('gulp-image-resize');
@ -65,7 +66,11 @@ gulp.task('images', ['hugo'], () => (
.pipe(gulp.dest('./')),
gulp.src(`${distPath}/images/game/icons/*`, {base: './'})
.pipe(imageResize({ width: 48, height: 48, crop: true }))
.pipe(gulp.dest('./'))
.pipe(gulp.dest('./')),
gulp.src(`${distPath}/images/screenshots/*`)
.pipe(imageResize({ width: 400, height: 240, crop: false }))
.pipe(gulp.dest(`${distPath}/images/screenshots/thumbs`))
));
gulp.task('html', ['hugo', 'css', 'js', 'images'], () => (