vuepress / core

Vue-Powered Static Site Generator
https://vuepress.vuejs.org
MIT License
2.16k stars 922 forks source link

[Bug report] Duplicate webpack chunkname with different pages #1531

Closed Mister-Hope closed 2 months ago

Mister-Hope commented 2 months ago

Description

The resolvePageChunkInfo use sanitizeFileName on basename, but in this case, the following pages chunk name will be the same:

@meteorlxy Could you please explain what you are doing at https://github.com/vuepress/core/commit/4f89d3915818a96e8afee61fbb1245120a231686

meteorlxy commented 2 months ago

Ah, that commit was to make the webpack chunk name more consistent with vite. Should add hash after the result.