[Question] How to inject raw <script> tag in Vue when using Vike SSR? #757
Replies: 1 comment
-
Ask in Vike discussions please. This is for RFCs |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since Vike doesn’t use a traditional
index.html
file, I'm wondering if there’s currently a way to inject a raw<script>
tag directly inside a Vue file like+Head.vue
when using SSR?I tried adding a simple script like this:
But it ends up being escaped:
Is it possible to add support for injecting raw scripts in Vue templates like this?
For more details on how Vike handles
<head>
, you can check the docs here: Vike Head DocumentationBeta Was this translation helpful? Give feedback.
All reactions