orange-ram-33041
04/22/2023, 11:24 PMgreat-cartoon-12331
04/22/2023, 11:26 PM<script>
tag in your main page templateorange-ram-33041
04/22/2023, 11:35 PMorange-ram-33041
04/22/2023, 11:39 PMgreat-cartoon-12331
04/22/2023, 11:40 PMgreat-cartoon-12331
04/22/2023, 11:44 PMrefined-waiter-90422
04/23/2023, 12:02 AM<script>
might be the way to go. Hope that helps!great-cartoon-12331
04/23/2023, 12:03 AMlittle-electrician-91324
04/23/2023, 1:03 PMbroad-doctor-65657
04/23/2023, 8:22 PMbroad-doctor-65657
04/23/2023, 8:23 PMgreat-cartoon-12331
04/23/2023, 8:23 PMbroad-doctor-65657
04/23/2023, 8:24 PMgreat-cartoon-12331
04/23/2023, 8:24 PMbroad-doctor-65657
04/23/2023, 8:26 PMbroad-doctor-65657
04/23/2023, 8:27 PMgreat-cartoon-12331
04/23/2023, 8:27 PMbroad-doctor-65657
04/23/2023, 8:28 PMgifted-appointment-5037
04/23/2023, 11:43 PMhttps://cdn.discordapp.com/attachments/725789747212976259/1099843004635811840/screenshot.png▾
great-cartoon-12331
04/23/2023, 11:45 PMgreat-musician-72573
04/24/2023, 3:51 AMhtml
<script type="module" src="/@vite/client"></script>
<script type="module" src="/app.ts"></script>
If you have any css imported in your code (e.g. import "./app.css";
), Vite will inject inline style tags into the head. But with hx-boost="true"
and after navigating to another page, it resets the head and the Vite modules don't rerun, so the inline styles get removed.
I believe there's no way to change the style tag that Vite injects (you can't add re-eval
or hx-preserve
).
mammoth-family-48524
04/24/2023, 8:25 AMminiature-lizard-24702
04/24/2023, 10:48 AMgifted-appointment-5037
04/24/2023, 10:56 AMminiature-lizard-24702
04/24/2023, 10:58 AMbitter-machine-55943
04/24/2023, 12:14 PMbitter-machine-55943
04/24/2023, 12:36 PMmysterious-toddler-20573
04/24/2023, 3:03 PMbroad-doctor-65657
04/24/2023, 3:37 PM