Skip to content

Commit 5897c9a

Browse files
committed
normalize file paths before postProcessing
1 parent f13761d commit 5897c9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/@vue/cli/lib/Generator.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ module.exports = class Generator {
7474
for (const middleware of this.fileMiddlewares) {
7575
await middleware(files, ejs.render)
7676
}
77-
for (const postProcess of this.postProcessFilesCbs) {
78-
await postProcess(files)
79-
}
8077
// normalize paths
8178
Object.keys(files).forEach(file => {
8279
const normalized = slash(file)
@@ -85,6 +82,9 @@ module.exports = class Generator {
8582
delete files[file]
8683
}
8784
})
85+
for (const postProcess of this.postProcessFilesCbs) {
86+
await postProcess(files)
87+
}
8888
debug('vue:cli-files')(this.files)
8989
}
9090
}

0 commit comments

Comments
 (0)