Skip to content

Instantly share code, notes, and snippets.

@henriquerezende
Last active June 17, 2020 17:00
Show Gist options
  • Save henriquerezende/d7df52ad882bda0652f44f1f6566f37f to your computer and use it in GitHub Desktop.
Save henriquerezende/d7df52ad882bda0652f44f1f6566f37f to your computer and use it in GitHub Desktop.
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