[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2024-04-14 11:06:56 +00:00 committed by GitHub
parent 850287bf18
commit b45c3c9cae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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">/, "")
})
})