mirror of
https://github.com/kremalicious/blog.git
synced 2025-02-14 21:10:25 +01:00
build fix
This commit is contained in:
parent
eb632ce0e3
commit
38bfbc42e6
@ -165,12 +165,13 @@ gulp.task('media', function() {
|
|||||||
gulp.task('imagemin', function () {
|
gulp.task('imagemin', function () {
|
||||||
return gulp.src([
|
return gulp.src([
|
||||||
dist + '/**/*.{png,jpg,jpeg,gif,svg}',
|
dist + '/**/*.{png,jpg,jpeg,gif,svg}',
|
||||||
'!'dist + '/media/**/*'
|
'!' + dist + '/media/**/*'
|
||||||
])
|
])
|
||||||
.pipe($.cache($.imagemin({
|
.pipe($.cache($.imagemin({
|
||||||
optimizationLevel: 3, // png
|
optimizationLevel: 5, // png
|
||||||
progressive: true, // jpg
|
progressive: true, // jpg
|
||||||
interlaced: true, // gif
|
interlaced: true, // gif
|
||||||
|
multipass: true, // svg
|
||||||
svgoPlugins: [{removeViewBox: false}]
|
svgoPlugins: [{removeViewBox: false}]
|
||||||
})))
|
})))
|
||||||
.pipe(gulp.dest(dist));
|
.pipe(gulp.dest(dist));
|
||||||
|
Loading…
Reference in New Issue
Block a user