Vite not working when running in localhost:5173
I’ve got a VueJS app and have recently added Vite to run it. When I run vite
in the terminal Vite starts running in port 5173
but I get an error in the browser saying:
Vite: How to build in library mode with code splitting (multiple chunks)?
When building Vue app in library mode with vue-cli-service, following command:
Vue3 + vite. Don’t see images after build
Project is vue3 + vite
vite.config.js
User relative path to /src/main.js (Vite)
Problem I’ve created a Vue application with Vite. Afterwards, I’ve installed Electron and Electron Forge. If I create and pack the App, all works fine after installing on my Linux system. But on other systems it doesn’t work. The reason is, that the index.html loads the main.js from the absolute path of the /dist/assets/ directory […]