Skip to content

Commit

Permalink
fix(get-assets): handle sub dir paths correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderBabel committed Jan 5, 2022
1 parent 3aa71d4 commit 6c9a6ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/get-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function getFiles (
*/
for (const folder of folders) {
files.push(
...(await getFiles(path.join(dir, folder.name), urlPrefix, true))
...(await getFiles(path.join(dir, folder.name), path.join(urlPrefix, folder.name), true))
)
}

Expand Down

0 comments on commit 6c9a6ae

Please sign in to comment.