Skip to content

Commit

Permalink
fix(ssr): remove trailing hash in webpack module identifier when
Browse files Browse the repository at this point in the history
generating client manifest
  • Loading branch information
yyx990803 committed Apr 5, 2018
1 parent 805a4fd commit ae6dcd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/webpack-plugin/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export default class VueSSRClientPlugin {
if (!chunk || !chunk.files) {
return
}
const files = manifest.modules[hash(m.identifier)] = chunk.files.map(fileToIndex)
const id = m.identifier.replace(/\s\w+$/, '') // remove appended hash
const files = manifest.modules[hash(id)] = chunk.files.map(fileToIndex)
// find all asset modules associated with the same chunk
assetModules.forEach(m => {
if (m.chunks.some(id => id === cid)) {
Expand Down

0 comments on commit ae6dcd6

Please sign in to comment.