mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 18:00:06 +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 () {
|
||||
return gulp.src([
|
||||
dist + '/**/*.{png,jpg,jpeg,gif,svg}',
|
||||
'!'dist + '/media/**/*'
|
||||
'!' + dist + '/media/**/*'
|
||||
])
|
||||
.pipe($.cache($.imagemin({
|
||||
optimizationLevel: 3, // png
|
||||
optimizationLevel: 5, // png
|
||||
progressive: true, // jpg
|
||||
interlaced: true, // gif
|
||||
multipass: true, // svg
|
||||
svgoPlugins: [{removeViewBox: false}]
|
||||
})))
|
||||
.pipe(gulp.dest(dist));
|
||||
|
Loading…
Reference in New Issue
Block a user