Last active
June 17, 2020 17:00
-
-
Save henriquerezende/d7df52ad882bda0652f44f1f6566f37f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Como fazer deploy React | |
1 passo - | |
npm install --save-dev gh-pages | |
2 passo | |
No arquivo package.json | |
"homepage": "http://<NomeDoUsuarioNoGithub>.github.io/<NomeDoRepositorio>" | |
dentro do objeto scripts | |
"predeploy": "npm run build", | |
"deploy": "gh-pages -d build" | |
3 passo | |
npm run deploy | |
Crédito: https://github.com/lfbf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment