mirror of
https://github.com/Xevion/old.xevion.github.io.git
synced 2025-12-06 03:15:39 -06:00
15 lines
277 B
JavaScript
15 lines
277 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));
|
|
});
|
|
|
|
};
|