From 6155f7fa523ad9687a54eecb70efffccc4923b81 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sat, 29 Dec 2018 05:07:35 -0700 Subject: [PATCH] use sync fs operations so fonts get included in bundle --- gulpfile.js/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js/build.js b/gulpfile.js/build.js index 8db878d..c12f332 100644 --- a/gulpfile.js/build.js +++ b/gulpfile.js/build.js @@ -30,7 +30,7 @@ module.exports = (src, dest, preview) => () => { const abspath = path.resolve('node_modules', relpath) const basename = path.basename(abspath) const destpath = path.join(dest, 'font', basename) - if (!fs.pathExists(destpath)) fs.copy(abspath, destpath) + if (!fs.pathExistsSync(destpath)) fs.copySync(abspath, destpath) return path.join('..', 'font', basename) }, }, -- 2.11.0