use sync fs operations so fonts get included in bundle
authorDan Allen <dan@opendevise.com>
Sat, 29 Dec 2018 12:07:35 +0000 (05:07 -0700)
committerDan Allen <dan@opendevise.com>
Sat, 29 Dec 2018 12:07:35 +0000 (05:07 -0700)
gulpfile.js/build.js

index 8db878d..c12f332 100644 (file)
@@ -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)
         },
       },