mirror of https://github.com/webpack/webpack.git
test: fix
This commit is contained in:
parent
193b712734
commit
38f21c0da8
|
@ -241,7 +241,7 @@ class CssLoadingRuntimeModule extends RuntimeModule {
|
||||||
"link.onload = onLinkComplete.bind(null, link.onload);"
|
"link.onload = onLinkComplete.bind(null, link.onload);"
|
||||||
]),
|
]),
|
||||||
"} else onLinkComplete(undefined, { type: 'load', target: link });", // We assume any existing stylesheet is render blocking
|
"} else onLinkComplete(undefined, { type: 'load', target: link });", // We assume any existing stylesheet is render blocking
|
||||||
withFetchPriority
|
withHmr && withFetchPriority
|
||||||
? 'if (hmr && hmr.getAttribute("fetchpriority")) link.setAttribute("fetchpriority", hmr.getAttribute("fetchpriority"));'
|
? 'if (hmr && hmr.getAttribute("fetchpriority")) link.setAttribute("fetchpriority", hmr.getAttribute("fetchpriority"));'
|
||||||
: "",
|
: "",
|
||||||
withHmr ? "hmr ? document.head.insertBefore(link, hmr) :" : "",
|
withHmr ? "hmr ? document.head.insertBefore(link, hmr) :" : "",
|
||||||
|
|
Loading…
Reference in New Issue