fix(web): preserve bootstrap attribute order

This commit is contained in:
Amruth Pillai
2026-07-28 08:48:14 +02:00
parent ca774c77c8
commit 048eab3b49
+1 -1
View File
@@ -60,7 +60,7 @@ export default defineConfig({
handler: (html) =>
html.replace(
/<script\b(?=[^>]*\btype="module")(?=[^>]*\bsrc="\/assets\/[^"]+")(?![^>]*\bdata-cfasync=)[^>]*>/,
(script) => script.replace(">", ' data-cfasync="false">'),
(script) => script.replace('src="', 'data-cfasync="false" src="'),
),
},
},