summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Allen <dan@opendevise.com>2018-12-29 05:07:35 -0700
committerDan Allen <dan@opendevise.com>2018-12-29 05:07:35 -0700
commit6155f7fa523ad9687a54eecb70efffccc4923b81 (patch)
treedd28e1c77c74be0aae91fb7b43d4eee36ee39eed
parent899d5fb12ad960ccbb2830a1c51bd72b9b1ce4c2 (diff)
downloadalpine-antora-theme-6155f7fa523ad9687a54eecb70efffccc4923b81.tar.bz2
alpine-antora-theme-6155f7fa523ad9687a54eecb70efffccc4923b81.tar.xz
use sync fs operations so fonts get included in bundle
-rw-r--r--gulpfile.js/build.js2
1 files changed, 1 insertions, 1 deletions
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)
},
},