Replies: 3 comments 8 replies
-
You could run an http/https server to host dist. Look at this reference https://vitejs.dev/guide/static-deploy.html for more info. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hello, have you found a solution for your issue? I am building the solution as a static site that I want to run directly on the browser as a local file, not through a web server. How can I achieve this? |
Beta Was this translation helpful? Give feedback.
6 replies
-
|
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
-
Hi, I want to be able to run index.html from dist folder (my project is to load the dist folder as static webview on the mobile app).
I am able to run index.html from dist folder with vue cli webpack by set vue-router history like this
However, with Vite I am not able to run index.html as it shows CORS error like this
Is there any configuration I'm missing? thanks in advanced for your help
Beta Was this translation helpful? Give feedback.
All reactions