Skip to content

Commit cfb1c20

Browse files
authored
Add Ionic usage info
While looking for a solution to publish Ionic projects through github pages, I found your great tool! Since the use with Ionic needs small tweaks, I thought a short paragraph in the readme could be helpful for others :)
1 parent b1edd47 commit cfb1c20

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,18 @@ npx angular-cli-ghpages --dir=dist/[PROJECTNAME]
8282
I most cases, the `[PROJECTNAME]` can be found in the `angular.json` file at `defaultProject`.
8383

8484

85+
### Usage with Ionic
86+
87+
You can use the tool with Angular based Ionic projects, too. Instead of the ` dist` folder, the Ionic CLI will create a `www` folder you have to point the tool to. Just use the following commands:
88+
89+
```bash
90+
ionic build --prod -- --base-href=https://USERNAME.github.io/REPOSITORY_NAME/`
91+
```
92+
93+
```bash
94+
npx angular-cli-ghpages --dir=www
95+
```
96+
8597

8698

8799
## Extra

0 commit comments

Comments
 (0)