fix(vue-app): avoid css chunk error (#5173)

This commit is contained in:
Yutaka Sasaki 2019-03-07 22:13:09 +09:00 committed by Pooya Parsa
parent cffd8848e5
commit 41028a407b

View File

@ -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
}