mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05:11 +00:00
fix(vite): use forEach
on NodeList not Element (#1734)
This commit is contained in:
parent
596c8c5476
commit
90487fde0c
@ -18,7 +18,7 @@ export function devStyleSSRPlugin (rootDir: string): Plugin {
|
|||||||
|
|
||||||
// When dev `<style>` is injected, remove the `<link>` styles from manifest
|
// When dev `<style>` is injected, remove the `<link>` styles from manifest
|
||||||
// TODO: Use `app.assetsPath` or unique hash
|
// TODO: Use `app.assetsPath` or unique hash
|
||||||
return code + `\ndocument.querySelector(\`link[href="/_nuxt${moduleId}"]\`).forEach(i=>i.remove())`
|
return code + `\ndocument.querySelectorAll(\`link[href="/_nuxt${moduleId}"]\`).forEach(i=>i.remove())`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user