-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any way to host SPA without local port? #2270
Comments
Hey @DaZiYuan - Unfortunately I'm unfamiliar with "SPA" or "NUXTJS". Is there a specific capability you need from the WebView2? Can you highlight which part of the code you posted is not working or you need support for? Thanks! |
Hi @champnic, but don't work in file protocol file:///C:/xx/Single-page-application/build/index.html I just want to know if there is a way can host SPA in webview2 but don't open any local port just like the way in electron.
|
Do you just want to load files from a location on disk? You can see if SetVirtualHostNameToFolderMapping works here: |
Thanks, works perfectly
|
Glad you got it working! :) |
for example, I built a SPA by NUXTJS.
I want to host it in webview2 but don't open any local ports.
I can do this in electron. is there any way to do the same thing in webview2, thanks
The text was updated successfully, but these errors were encountered: