use sync fs operations so fonts get included in bundle

This commit is contained in:
Dan Allen
2018-12-29 05:07:35 -07:00
parent 899d5fb12a
commit 6155f7fa52

View 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)
},
},