mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-19 13:01:44 +10:00
fix(web): preserve Rocket Loader exclusion in build
This commit is contained in:
@@ -53,6 +53,17 @@ export default defineConfig({
|
||||
},
|
||||
|
||||
plugins: [
|
||||
{
|
||||
name: "cloudflare-rocket-loader-bootstrap",
|
||||
transformIndexHtml: {
|
||||
order: "post",
|
||||
handler: (html) =>
|
||||
html.replace(
|
||||
/<script\b(?=[^>]*\btype="module")(?=[^>]*\bsrc="\/assets\/[^"]+")(?![^>]*\bdata-cfasync=)[^>]*>/,
|
||||
(script) => script.replace(">", ' data-cfasync="false">'),
|
||||
),
|
||||
},
|
||||
},
|
||||
devtools(),
|
||||
tailwindcss(),
|
||||
tanstackRouter({
|
||||
|
||||
Reference in New Issue
Block a user