- Install gh-pages
npm i gh-pages
- Now make these changes in your package.json file
- Add
"homepage":"https://<your-github-username>.github.io/<name-of-repo>"
- Add scripts
- Go to the terminal or command-prompt and run
npm run deploy
- You should see
Published
after few seconds.
- Now your website is live on
https://<your-github-username>.github.io/<name-of-repo>
https://anjantalatam.github.io/react-gh-pages
anjantalatam / react-gh-pages Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://anjantalatam.github.io/react-gh-pages