mirror of
https://github.com/Xevion/old.xevion.github.io.git
synced 2025-12-06 11:15:37 -06:00
god damn
This commit is contained in:
14
build/images.js
Normal file
14
build/images.js
Normal file
@@ -0,0 +1,14 @@
|
||||
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 ));
|
||||
});
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user