mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
cov: Ignore fallback conditions
This commit is contained in:
parent
a447249db1
commit
8c04f5d8a6
@ -88,6 +88,7 @@ async function readSource(frame) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Fallback: use server bundle
|
// Fallback: use server bundle
|
||||||
|
/* istanbul ignore if */
|
||||||
if (!frame.contents) {
|
if (!frame.contents) {
|
||||||
frame.contents = this.resources.serverBundle.files[frame.fileName]
|
frame.contents = this.resources.serverBundle.files[frame.fileName]
|
||||||
}
|
}
|
||||||
|
@ -42,6 +42,7 @@ module.exports = async function nuxtMiddleware(req, res, next) {
|
|||||||
|
|
||||||
preloadFiles.forEach(({ file, asType, fileWithoutQuery, extension }) => {
|
preloadFiles.forEach(({ file, asType, fileWithoutQuery, extension }) => {
|
||||||
// By default, we only preload scripts or css
|
// By default, we only preload scripts or css
|
||||||
|
/* istanbul ignore if */
|
||||||
if (!shouldPush && asType !== 'script' && asType !== 'style') {
|
if (!shouldPush && asType !== 'script' && asType !== 'style') {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user