Files
old.xevion.github.io/build/images.js
Brittany Chiang b4e7f01ccf did it hell yeah
2017-03-15 14:01:40 -04:00

15 lines
278 B
JavaScript

const imagemin = require('gulp-imagemin');
const imgPath = 'img/**/*.+(png|jpg|gif|svg)';
const destPath = '_site/img';
module.exports = gulp => {
gulp.task('images', () => {
return gulp.src( imgPath )
.pipe( imagemin() )
.pipe(gulp.dest( destPath ));
});
}