projects
/
working
/
eg-antora.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
899d5fb
)
use sync fs operations so fonts get included in bundle
author
Dan Allen
<dan@opendevise.com>
Sat, 29 Dec 2018 12:07:35 +0000
(
05:07
-0700)
committer
Dan Allen
<dan@opendevise.com>
Sat, 29 Dec 2018 12:07:35 +0000
(
05:07
-0700)
gulpfile.js/build.js
patch
|
blob
|
history
diff --git
a/gulpfile.js/build.js
b/gulpfile.js/build.js
index
8db878d
..
c12f332
100644
(file)
--- 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.pathExists
Sync(destpath)) fs.copySync
(abspath, destpath)
return path.join('..', 'font', basename)
},
},