Skip to content
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

Assets from /public doesn't work in release build of Electron App when using electron-vite #87

Open
jakerdy opened this issue Feb 7, 2023 · 1 comment

Comments

@jakerdy
Copy link

jakerdy commented Feb 7, 2023

Hi, i am working on graphics editing app made with Solid.
Some time ago, i decided to make desktop client to simplify working with files and directories.

I found project called electron-vite, which make life of electron dev and newcommer easier.
And, my first tries failed because of issues with release builds.
Assets which has been put into /public directory didn't work in built app.

At first, i made issue at electron-vite repo.
After some invesigation, author talled me that, electron-vite is fine, and looks like problem somewhere in vite-pluting-solid.

Could you please check this out, and help investigate it further?

More details here (in second part of my message):
alex8088/electron-vite#99 (comment)

@alex8088
Copy link
Contributor

alex8088 commented Feb 7, 2023

Such as:

`<img src="/logo.svg" alt="logo" />`

In vue and react, it will be bundle to new URL('/logo.svg', import.meta.url).href, but not in solid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants