Skip to content

Assets folder not included during compile #847

Answered by codeit-ninja
codeit-ninja asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, sorry for asking .. I had to look into the vite config and documentation.

You need to create an public folder in the root of the renderer package.
And then instead of importing it like

<img src="./public/image.png" />

You have to do

<img src="./image.png" />

Vite puts everything from the public dir in the output root directory.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@cawa-93
Comment options

@codeit-ninja
Comment options

@cawa-93
Comment options

Answer selected by codeit-ninja
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