Skip to content

Commit

Permalink
fix(vue-app): avoid css chunk error (#5173)
Browse files Browse the repository at this point in the history
  • Loading branch information
sskyu authored and pi0 committed Mar 7, 2019
1 parent cffd884 commit 41028a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-app/template/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async function loadAsyncComponents(to, from, next) {

// Handle chunk loading errors
// This may be due to a new deployment or a network problem
if (/^Loading chunk (\d)+ failed\./.test(message)) {
if (/^Loading( CSS)? chunk (\d)+ failed\./.test(message)) {
window.location.reload(true /* skip cache */)
return // prevent error page blinking for user
}
Expand Down

0 comments on commit 41028a4

Please sign in to comment.