don't remove link attributes on html rewrite when in dev
@@ -318,11 +318,13 @@ class Runner {
const domInterceptor = cfg.tauri.embeddedServer.active ? undefined : (dom: JSDOM) => {
const document = dom.window.document
+ if (!cfg.ctx.dev) {
document.querySelectorAll('link').forEach((link: HTMLLinkElement) => {
link.removeAttribute('rel')
link.removeAttribute('as')
})
}
+ }
if ((!cfg.ctx.dev && cfg.tauri.embeddedServer.active) || !inlinerEnabled) {
const html = rewriteHtml(originalHtml, domInterceptor)
