DEV Community

Cover image for GitHub Pages React
Laura Fumagalli
Laura Fumagalli

Posted on • Edited on

GitHub Pages React

// first the command:
// npm install gh-pages --save-dev

// add on packge.json:

// in the top, in the top of "name":
// "homepage": "http://fumagallilaura.github.io/vetmap",

// in the begin of "scripts" key:
// "predeploy": "npm run build",
// "deploy": "gh-pages -d build",

// after the application is ready, run the command:
// npm run deploy

Top comments (0)