vite-plugin-solid icon indicating copy to clipboard operation
vite-plugin-solid copied to clipboard

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

Open jakerdy opened this issue 2 years ago • 1 comments

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): https://github.com/alex8088/electron-vite/issues/99#issuecomment-1420706559

jakerdy avatar Feb 07 '23 14:02 jakerdy

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.

alex8088 avatar Feb 07 '23 14:02 alex8088