From a11c85d7b4490437afd82ee4eb06d20223840348 Mon Sep 17 00:00:00 2001 From: Aaron Imming Date: Fri, 1 Feb 2019 11:31:15 +0800 Subject: [PATCH] Fix boolean passing --- gulp/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulp/build.js b/gulp/build.js index 09a6d44fbc..acad976030 100644 --- a/gulp/build.js +++ b/gulp/build.js @@ -21,7 +21,7 @@ const getConfig = prefix => ({ const genHtml = min => gulp .src('templates/*.mustache') - .pipe(mustache({}, { extension: '.html' }, getConfig(typeof min === 'boolean' ? '.min' : ''))) + .pipe(mustache({}, { extension: '.html' }, getConfig(min === true ? '.min' : ''))) .pipe(gulp.dest('./www')) .pipe(connect.reload());