Commit 6155f7fa authored by Dan Allen's avatar Dan Allen

use sync fs operations so fonts get included in bundle

parent 899d5fb1
Pipeline #41622773 passed with stages
in 2 minutes and 42 seconds
......@@ -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)
},
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment