From: Dan Allen Date: Sat, 29 Dec 2018 12:07:35 +0000 (-0700) Subject: use sync fs operations so fonts get included in bundle X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6155f7fa523ad9687a54eecb70efffccc4923b81;p=working%2Feg-antora.git use sync fs operations so fonts get included in bundle --- 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) }, },