-
Hello! I'm trying to migrate from CRA to Vite, and it's been unsuccessful so far... I would like to make the config work with the current folder structure I have.
With the following config, the HTML loads but I get electron.vite.config renderer: {
root: "public",
build: {
rollupOptions: {
input: {
app: resolve(__dirname, "public", "index.html")
}
}
}
} index.html <script type="module" src="src/index.js"></script> I also tried to set What config should I use? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
My bad, I was not looking into the right console. |
Beta Was this translation helpful? Give feedback.
My bad, I was not looking into the right console.
The solution is to use
root: "."
, I get the500
because I use a.js
file instead of.jsx