Skip to content

Commit 81b8a30

Browse files
committed
Due to changes in angular.json, the project is created as sub-folder of dist/. Need to explicitly pass the output dir to nah command.
angular-schule/angular-cli-ghpages#37
1 parent 22401a8 commit 81b8a30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To get more help on the Angular CLI use `ng help` or go check out the [Angular C
2929
## Deploy to github.io
3030

3131
* ng build --prod --base-href "https://railsstudent.github.io/ng-fun-prog/"
32-
* ngh --no-silent
32+
* ngh --no-silent --dir dist/ng-fun-prog
3333

3434
* Method 2
3535
* npm run deploy

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint": "ng lint",
1010
"e2e": "ng e2e",
1111
"deploy":
12-
"ng build --prod --base-href \"https://railsstudent.github.io/ng-fun-prog/\" && ngh --no-silent"
12+
"ng build --prod --base-href \"https://railsstudent.github.io/ng-fun-prog/\" && ngh --no-silent --dir dist/ng-fun-prog"
1313
},
1414
"private": true,
1515
"dependencies": {

0 commit comments

Comments
 (0)