I’m developing a webapp that uses vite on the frontend for my local testing environment and also a separate API backend. I used mkcert to generate a local dev certificate and am using that one for the backend. My question is, for my frontend dev environment I also can use a certificate, as shown here in the vite config: My
Tag: vite
Why does my localhost:3000 not work (error 500)
I am trying to follow a tutorial but i run into problems before i even have written a line of code. only terminal commands as seen below: When i go to the localhost i get presented a blank page (in the tutorial it shows a visual and some text. When i inspect the page i get presented by there errors:
how load video only once if a modal is dynamic in vuejs3/vite?
I having a problem optimizing the performance of my application build in Vuejs3/Vite and Aframe. I need to somehow prefetch 6 videos. The problem is that each time I open a modal the browser fetches a video again. I want the browser to only fetch it once and store it somehow. My application should look like this. Homepage has 6
React.js builds with Vite does not include service-worker.ts
I am using Vite to build an SPA with React (typescript), and I am trying to register a service-worker. I am registering the script as type module, and service-worker.ts sits at src/web-worker/service-worker.ts. There is also a tsconfig.json at src/web-worker Everything works in Dev, but when it’s built, src/web-worker/service-worker.ts is not replaced with anything equivalent. Any suggestions? index.html src/web-worker/service-worker.ts src/web-worker/tsconfig.json Answer
How to watch public directory in Vite project for hot-reload?
I have a react project configured with Vite. Hot reload works great, but I use react-i18next for multiple language support and this is my structure: When I change the translation.json files, Vite doesn’t watch it, and I have to refresh the page to see the changes. Is there a way to tell Vite to watch all the files in the
Socket.IO in React app bundled with Vite doesnt work (When bundled with Webpack it does)
I have a Create React App that I migrated to Vite. I use socket.io-client. Both versions of the app are exactly the same (simply copy/paste) except the bundlers. This is my websocket connection In the webpack version I can see in the network tab that socket.io is attempting to connect. But in the vite version it doesn’t, it doesn’t even