@@ -104,20 +104,20 @@ module.exports = (src, dest, preview) => () => {
104
104
. src ( [ 'css/site.css' , 'css/vendor/*.css' ] , { ...opts , sourcemaps } )
105
105
. pipe ( postcss ( ( file ) => ( { plugins : postcssPlugins , options : { file } } ) ) ) ,
106
106
vfs . src ( 'font/*.{ttf,woff*(2)}' , opts ) ,
107
- vfs
108
- . src ( 'img/**/*.{gif,ico,jpg,png,svg}' , opts )
109
- . pipe (
110
- preview
111
- ? through ( )
112
- : imagemin (
113
- [
114
- imagemin . gifsicle ( ) ,
115
- imagemin . jpegtran ( ) ,
116
- imagemin . optipng ( ) ,
117
- imagemin . svgo ( { plugins : [ { removeViewBox : false } ] } ) ,
118
- ] . reduce ( ( accum , it ) => ( it ? accum . concat ( it ) : accum ) , [ ] )
119
- )
120
- ) ,
107
+ vfs . src ( 'img/**/*.{gif,ico,jpg,png,svg}' , opts ) . pipe (
108
+ preview
109
+ ? through ( )
110
+ : imagemin (
111
+ [
112
+ imagemin . gifsicle ( ) ,
113
+ imagemin . jpegtran ( ) ,
114
+ imagemin . optipng ( ) ,
115
+ imagemin . svgo ( {
116
+ plugins : [ { removeUselessDefs : false } , { removeViewBox : false } , { removeDesc : false } ] ,
117
+ } ) ,
118
+ ] . reduce ( ( accum , it ) => ( it ? accum . concat ( it ) : accum ) , [ ] )
119
+ )
120
+ ) ,
121
121
vfs . src ( 'helpers/*.js' , opts ) ,
122
122
vfs . src ( 'layouts/*.hbs' , opts ) ,
123
123
vfs . src ( 'partials/*.hbs' , opts )
0 commit comments