-
Notifications
You must be signed in to change notification settings - Fork 99
FAQ
Johannes Hoppe edited this page May 21, 2017
·
14 revisions
Go to you repository settings, scroll down to the GitHub Pages
section:
That's by design, the command overrides everything. If it wouldn't do that, all the hashed bundles would stay, too!
You have to put a CNAME
file into your dist
folder.
Example:
ng build
echo "my-domain.com" > dist/CNAME
angular-cli-ghpages [OPTIONS]
git clone https://github.com/angular-buch/angular-cli-ghpages.git
cd angular-cli-ghpages
npm link
npm link
is very similar to npm install -g
except that instead of downloading the package
from the NPM repo, the just cloned angular-cli-ghpages/
folder becomes the global package.
Now you can use ngh
via the command line.
Please read the official npm-link documentation
and the npm-link cheatsheet for more information.