Skip to content

Commit

Permalink
fix(ssr): avoid missing files in manifest
Browse files Browse the repository at this point in the history
Co-authored-by: johnleider <john@vuetifyjs.com>
  • Loading branch information
2 people authored and posva committed Aug 25, 2020
1 parent bb253db commit b72dd5c
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
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 b72dd5c

Please sign in to comment.