Assets folder not included during compile
#847
Answered
by
codeit-ninja
codeit-ninja
asked this question in
Q&A
-
I compiled to app for local debugging and get errors in the console that all the images are missing because the assets folder doesn't exist. |
Beta Was this translation helpful? Give feedback.
Answered by
codeit-ninja
Oct 8, 2022
Replies: 1 comment 3 replies
-
Ok, sorry for asking .. I had to look into the You need to create an
You have to do
Vite puts everything from the public dir in the output root directory. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
codeit-ninja
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 therenderer
package.And then instead of importing it like
You have to do
Vite puts everything from the public dir in the output root directory.