From cc84e998029e3af58d9ef9c0c2105932870f9a69 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 26 Mar 2020 14:58:43 -0600 Subject: [PATCH] format source --- gulp.d/tasks/build.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gulp.d/tasks/build.js b/gulp.d/tasks/build.js index 9979f91..f27dc00 100644 --- a/gulp.d/tasks/build.js +++ b/gulp.d/tasks/build.js @@ -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), -- 2.11.0