We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c7223a4 + 7996bdb commit c466747Copy full SHA for c466747
1 file changed
src/html/Build.ts
@@ -21,7 +21,7 @@ export class Build extends Base {
21
* @param needRemove
22
*/
23
async checkVirtualPath(html: string, needRemove: Array<string>, root: string) {
24
- const cwd = path.resolve(this.cwd, root)
+ const cwd = normalizePath(path.resolve(this.cwd, root))
25
const pathArr = html.split('/')
26
const fileName = pathArr[pathArr.length - 1]
27
const middlePath = html.replace(fileName, '').replace(cwd, '')
0 commit comments