Building Vue3 app without mounting #9787
Unanswered
bglendenning
asked this question in
Help/Questions
Replies: 2 comments
-
As a 'temporary' solution, I'm parsing the URL path to get the requisite values within the Vue app. IDK if this is ideal, but it's better than nothing. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Maybe you need to develop a vite plug-in and use the transform hook to replace the corresponding text. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using composition/SFC structure with Django/DRF backend. I have an application with multiple components. In development I pass props to the app in
main.js
:What I assumed this would allow me to do is use
createApp
within a Django template, and I could pass these values into the Vue app:With the values in curly braces being Django template variables. These values are used to construct static files & API endpoint paths. However,
npm run build
(apparently usingvite build
) packages the application withmain.js
, and soorganization_uuid
,event_id
, andstatic_dir
are not changeable.Is there a way to build the application without the
createApp
declaration?Beta Was this translation helpful? Give feedback.
All reactions