Closed darkterminal closed 1 year ago
If you would like to continue contributing to open source and would like to do it with an awesome inclusive community, you should join our GitHub Organisation - we help and encourage each other to contribute to open source little and often :neckbeard:. Any questions let us know.
Awesome timeframe tbh 🤣 !
This issue will generate as story in our Street Community Programmer site. Thanks for your story!
The Back Story about this Metaphor
Migrate CRA to Vite Without Changing Any Old Files
Metaphore story
When I need more speed in development phase, I choose Vite to boost my development workflow. But I have old (slow) CRA before.
Here my old CRA Directory Structure
But wait... Vite work out of the book using
.tsx
and.jsx
when first initial create vite app. But my oldmetaphor
have.js
extension and I don't want to rename and changing my oldmetaphor
base.So, here the step to chill and migrate...
vite.config.js
in the root directoryreact-scripts
command and package inpackage.json
Move
index.html
frompublic
directory to root of project, and also make sure:Change
env
variable prefixREACT_APP_
withVITE_
Install
vite
as dev dependenciesnpm i --save-dev @types/react @types/react-dom @vitejs/plugin-react vite
Here my new directory structure
That's it! Enjoy your speed....
A demo/repos link
No response