Skip to content

Commit

Permalink
fix(ssr): not push non-async css files into map (#9677)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo authored and yyx990803 committed Mar 13, 2019
1 parent 2747a65 commit d282400
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
Original file line number Diff line number Diff line change
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 d282400

Please sign in to comment.