Skip to content

Commit

Permalink
fix: use relative path to read file
Browse files Browse the repository at this point in the history
  • Loading branch information
Chieffo2021 committed Aug 12, 2021
1 parent 0032536 commit ccac38b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generate/geneIndexHtml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function generateWithVueCliPublicIndex (astParsingResult: AstParsingResul
if (indexHtmlTransformationResult) {
indexHtmlContent = indexHtmlTransformationResult[0].content
} else {
indexHtmlContent = readSync(path.resolve('src/template/index.html'))
indexHtmlContent = readSync(path.join(__dirname, '../template/index.html'))
}
return stringFormat(indexHtmlContent, generateEntriesHtml(entries))
}
Expand Down

0 comments on commit ccac38b

Please sign in to comment.