Skip to content
Discussion options

You must be logged in to vote

Thanks for opening up a discussion!

It's hard to tell what's going wrong without seeing your exact config and directory structure. I can give a guess on what's happening, if you haven't altered any configs:

By default, everything in <root>/src is being ignored by Electron Builder, this is because we need to pack Electron with transpiled JavaScript files instead of TypeScript / Vue files. These transpiled (build) files can be found in <root>/build after compilation. The reason why it works on dev is because Vite's dev server is able to serve the TypeScript files in <root>/src directly as JavaScript.

Normally, a Vue project only has 1 entry point / html file, hence your login.html is not be…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Rostov4an1n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants