Skip to content

Instantly share code, notes, and snippets.

@vijaydeepak-tt
Created November 25, 2019 16:35
Show Gist options
  • Save vijaydeepak-tt/ed9233bd441e7cc37b2e262e74d23fd0 to your computer and use it in GitHub Desktop.
Save vijaydeepak-tt/ed9233bd441e7cc37b2e262e74d23fd0 to your computer and use it in GitHub Desktop.
Angular github publish
Publishing Procedure:
Step1: Run "npm build --prod".
Step2: install ghpage for angular cli by running "npm i -g angular-cli-ghpages" in cmd.
Step3: push the complete code to the github repository.
Step4: run ng build --prod --base-href "https://USERNAME.github.io/REPOSITORY/" command.
Ex: ng build --prod --base-href https://Prince7195.github.io/angular-chatbot
Step5: run ngh cmd.
Step6: Check the url you mentioned.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment