Disable image compression
Because it doesn't look nice :(
This commit is contained in:
parent
df8a6e6210
commit
d18e6b5e60
12
gulpfile.js
12
gulpfile.js
|
@ -63,24 +63,12 @@ gulp.task("css", ['hugo'], () => (
|
|||
|
||||
gulp.task('images', ['hugo'], () => (
|
||||
gulp.src(`${distPath}/images/*`, {base: './'})
|
||||
.pipe(image({
|
||||
mozjpeg: false,
|
||||
jpegoptim: false
|
||||
}))
|
||||
.pipe(gulp.dest('./')),
|
||||
gulp.src(`${distPath}/images/jumbotron/*`, {base: './'})
|
||||
.pipe(jimp({ sizes: [{"width": 786, "height": 471 }] }))
|
||||
.pipe(image({
|
||||
mozjpeg: false,
|
||||
jpegoptim: false
|
||||
}))
|
||||
.pipe(gulp.dest('./')),
|
||||
gulp.src(`${distPath}/images/banners/*`, {base: './'})
|
||||
.pipe(jimp({ sizes: [{"width": 824, "height": 306 }] }))
|
||||
.pipe(image({
|
||||
mozjpeg: false,
|
||||
jpegoptim: false
|
||||
}))
|
||||
.pipe(gulp.dest('./'))
|
||||
));
|
||||
|
||||
|
|
Reference in New Issue