Skip to content

Commit 98ce574

Browse files
authored
README: Info on dist subfolder
@JohannesHoppe
1 parent a152f37 commit 98ce574

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,23 @@ there is also a shorter `ngh` command available
6969
ng build --prod --base-href "https://USERNAME.github.io/REPOSITORY/"
7070
ngh [OPTIONS]
7171
```
72-
7372
If you want to push to `gh-pages` on the same repository with your default credentials, then just enter `ngh` without any options.
7473

7574

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+
7689

7790
## Extra
7891

0 commit comments

Comments
 (0)