format source
authorDan Allen <dan@opendevise.com>
Thu, 26 Mar 2020 20:58:43 +0000 (14:58 -0600)
committerDan Allen <dan@opendevise.com>
Thu, 26 Mar 2020 20:58:43 +0000 (14:58 -0600)
gulp.d/tasks/build.js

index 9979f91..f27dc00 100644 (file)
@@ -74,12 +74,14 @@ module.exports = (src, dest, preview) => () => {
     vfs
       .src('img/**/*.{gif,ico,jpg,png,svg}', opts)
       .pipe(
-        imagemin([
-          imagemin.gifsicle(),
-          imagemin.jpegtran(),
-          imagemin.optipng(),
-          imagemin.svgo({ plugins: [{ removeViewBox: false }] }),
-        ].reduce((accum, it) => it ? accum.concat(it) : accum, []))
+        imagemin(
+          [
+            imagemin.gifsicle(),
+            imagemin.jpegtran(),
+            imagemin.optipng(),
+            imagemin.svgo({ plugins: [{ removeViewBox: false }] }),
+          ].reduce((accum, it) => (it ? accum.concat(it) : accum), [])
+        )
       ),
     vfs.src('helpers/*.js', opts),
     vfs.src('layouts/*.hbs', opts),