mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-24 07:12:18 +10:00
fix(web): preserve Rocket Loader exclusion in build
This commit is contained in:
@@ -53,6 +53,17 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
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(),
|
devtools(),
|
||||||
tailwindcss(),
|
tailwindcss(),
|
||||||
tanstackRouter({
|
tanstackRouter({
|
||||||
|
|||||||
Reference in New Issue
Block a user