mirror of
https://github.com/boostorg/unordered-ui-bundle.git
synced 2026-01-19 04:42:15 +00:00
use sync fs operations so fonts get included in bundle
This commit is contained in:
@@ -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)
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user