Commit 61d151cc authored by JJ Kasper's avatar JJ Kasper Committed by Joe Haddad

Handle backslashes in exportedFiles (#8277)

parent 91629a8e
...@@ -444,7 +444,9 @@ export default async function build(dir: string, conf = null): Promise<void> { ...@@ -444,7 +444,9 @@ export default async function build(dir: string, conf = null): Promise<void> {
} }
const exportedFiles = new Set( const exportedFiles = new Set(
await recursiveReadDir(exportOptions.outdir, /.*\.html$/) (await recursiveReadDir(exportOptions.outdir, /.*\.html$/)).map(p =>
p.replace(/\\/g, '/')
)
) )
const moveExportedPage = async (page: string, file: string) => { const moveExportedPage = async (page: string, file: string) => {
......
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