Skip to content

Commit

Permalink
fix(ssr): not push non-async css files into map (vuejs#9677)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo authored and kiku-jw committed Jun 18, 2019
1 parent f94d1b2 commit 1a8ea96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/template-renderer/create-async-file-mapper.js
Expand Up @@ -43,8 +43,8 @@ function mapIdToFile (id, clientManifest) {
if (fileIndices) {
fileIndices.forEach(index => {
const file = clientManifest.all[index]
// only include async files or non-js assets
if (clientManifest.async.indexOf(file) > -1 || !(/\.js($|\?)/.test(file))) {
// only include async files or non-js, non-css assets
if (clientManifest.async.indexOf(file) > -1 || !(/\.(js|css)($|\?)/.test(file))) {
files.push(file)
}
})
Expand Down

0 comments on commit 1a8ea96

Please sign in to comment.