mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix(vue-app): avoid css chunk error (#5173)
This commit is contained in:
parent
cffd8848e5
commit
41028a407b
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user