File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,23 @@ there is also a shorter `ngh` command available
69
69
ng build --prod --base-href " https://USERNAME.github.io/REPOSITORY/"
70
70
ngh [OPTIONS]
71
71
```
72
-
73
72
If you want to push to ` gh-pages ` on the same repository with your default credentials, then just enter ` ngh ` without any options.
74
73
75
74
75
+ ### Usage with Angular CLI 6 or higher
76
+
77
+ With Angular CLI 6 the build artifacts will be put in a subfolder under ` dist ` .
78
+ Please take a look at the ` dist ` folder to see whether there is a subfolder with your project's name or not.
79
+ If yes, you need to specify the deploy directory manually then when using this tool:
80
+
81
+ ``` bash
82
+ ngh --dir dist/[PROJECTNAME]
83
+ ```
84
+
85
+ I most cases, the ` [PROJECTNAME] ` can be found in the ` angular.json ` file at ` defaultProject ` .
86
+
87
+
88
+
76
89
77
90
## Extra
78
91
You can’t perform that action at this time.
0 commit comments