Open your project folder on VS Code.
Install gh-pages, this module requires Git >=1.9.
npm i gh-pages --save-dev
Create repository on your Github account
Copy repository url
git remote add origin {gitRepositoryUrl}
Add
{
"homepage": "{gitRepositoryUrl}",
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
}
}
to package.json
and code
npm run deploy
on terminal.
Top comments (0)