Today’s Task
- [ASAP] Property Page
- Migrate ReleaseMe from CRA to Vite
- Transfered config files
- Mock up Node builtin modules
- npm start
Additional Task
- Rebuild image for Shadowbroker
- Fix email sending on Node B
- Release image for Nexus and initialize regresion
Thought
1
Migrate CRA to Vite
1 Update package.json
1 | "scripts": { |
delete react-scripts
from dependencies
install several vite devDependencies
1 | npm i vite @vitejs/plugin-react vite-plugin-svgr |
2 Add Vite Config
vite.config.ts
1 | import { defineConfig } from 'vite' |
3. Update tsconfig.json
1 | { |
then npm i
or yarn
4. Move index.html out
move /public/index.html
to the root of the project
Remove %PUBLIC_URL%
Add script
1 | <body> |
5. Update ENV vars
search and replace all process.env.REACT_APP_
to import.meta.env.VITE_