mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
850287bf18
commit
b45c3c9cae
@ -1,5 +1,5 @@
|
||||
export default defineNitroPlugin((nitroApp) => {
|
||||
nitroApp.hooks.hook("render:html", (html, {event})=>{
|
||||
html.head = html.head.map((headSection:string)=>headSection.replace(/<link((?=[^>]+\bhref="\/_nuxt\/DelayedWrapperTestComponent\.([^.]+?)\.js")[^>]+>)/, "")) //.replace(/<link rel="preload" href="\/_nuxt\/DelayedWrapperTestComponent\.js" as="script">/, "")
|
||||
})
|
||||
nitroApp.hooks.hook('render:html', (html, { event }) => {
|
||||
html.head = html.head.map((headSection: string) => headSection.replace(/<link((?=[^>]+\bhref="\/_nuxt\/DelayedWrapperTestComponent\.([^.]+?)\.js")[^>]+>)/, '')) // .replace(/<link rel="preload" href="\/_nuxt\/DelayedWrapperTestComponent\.js" as="script">/, "")
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user