This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
- Clone this repo
https://janewu1128.github.io/Jane-Portfolio/
- Modify your changes
- See changes locally in real time without deploy
Runnpm run dev
- Commit changes on Github
Rungit add .
Rungit commit -m "Update portfolio content"
Rungit push origin main
- Update files to the
dist
folder
Runnpm run build
- Deploy
dist
folder togh-pages
branch
Runnpm run deploy
- If you don't have gh-pages package, install gh-pages package as follow:
runnpm install gh-pages --save-dev
go to Settings > Pages in your repo, set Branch: gh-pages, you will get a URL for your website
GitHub Pages will automatically reflect your changes afterwards