Skip to content

Commit

Permalink
fix(ssr): avoid missing files in manifest (#11609)
Browse files Browse the repository at this point in the history
Co-authored-by: chenyj <2932802684@qq.com>
Co-authored-by: johnleider <john@vuetifyjs.com>
  • Loading branch information
3 people authored Sep 21, 2020
1 parent 579e1ff commit b97606c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server/template-renderer/create-async-file-mapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ function mapIdToFile (id, clientManifest) {
fileIndices.forEach(index => {
const file = clientManifest.all[index]
// only include async files or non-js, non-css assets
if (clientManifest.async.indexOf(file) > -1 || !(/\.(js|css)($|\?)/.test(file))) {
if (
file &&
(clientManifest.async.indexOf(file) > -1 ||
!/\.(js|css)($|\?)/.test(file))
) {
files.push(file)
}
})
Expand Down

0 comments on commit b97606c

Please sign in to comment.