Replies: 1 comment
-
Solved. Doesn't work because the devtools don't work unless running off vite dev server. Doesn't work fully with compiled assets |
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
-
I have a vite-based project (part of a Dotnet core project) and when working in development, I run
![Screenshot 2023-07-12 at 14 47 10](https://private-user-images.githubusercontent.com/511773/252992236-a08b34c6-2afa-4613-b1c6-35577707324d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5NjY1MDIsIm5iZiI6MTcxODk2NjIwMiwicGF0aCI6Ii81MTE3NzMvMjUyOTkyMjM2LWEwOGIzNGM2LTJhZmEtNDYxMy1iMWM2LTM1NTc3NzA3MzI0ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyMVQxMDM2NDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lNzY5YWYwOTg5Nzk3ODdiNzM5NDUxMTIzMTMwNmQyM2NkZTEzNDgzMjc0YjExNTUzYzFkNjM4MjhhYmE2MmM2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9._icGutqHD-TcOXSpRUhNzZIxej2Lk1IQms3FRrp22cg)
yarn vite build --mode development
to build development assets (since trying to use the dev server with a Dotnet project is more headache than I care to deal with).I'm using SFC's and mounting them with vanilla JS (based on some
data-component
anddata-props
attributes on my cshtml files), rather than doing a full SPA.When I open the DevTools in Chrome or Brave, I only see props and some DOM refs (where I need to attach something directly to a DOM element).
I'm not sure why this is happening. Maybe just a result of building development assets to disk versus using the devserver?
And yes, I may be a little bit crazy with this setup!
Beta Was this translation helpful? Give feedback.
All reactions