Skip to content

Commit 41d3f95

Browse files
committed
fix(build): fonts not being copied to css folder
1 parent adf4bf8 commit 41d3f95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ module.exports = (api, options) => {
8080
options,
8181
rendererConfig
8282
)
83-
if (fs.existsSync(api.resolve('./dist/fonts'))) {
84-
fs.mkdirSync(api.resolve('./dist/css/fonts'))
83+
if (fs.existsSync(api.resolve(outputDir + '/bundled/fonts'))) {
84+
fs.mkdirSync(api.resolve(outputDir + '/bundled/css/fonts'))
8585
fs.copySync(
8686
api.resolve(outputDir + '/bundled/fonts'),
8787
api.resolve(outputDir + '/bundled/css/fonts')

0 commit comments

Comments
 (0)