Skip to content

Commit 27a67c1

Browse files
docs: add base-href option
1 parent 2c74aee commit 27a67c1

File tree

3 files changed

+21
-2700
lines changed

3 files changed

+21
-2700
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ node_modules
44
*.js
55
*.js.map
66
.gitignore
7-
*.code-workspace
7+
*.code-workspace
8+
**/package-lock.json

src/README.md

+19-9
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,32 @@ This command has no effect if the option `--no-build` option is active.
4343

4444

4545
#### --no-build <a name="no-build"></a>
46-
* __optional__
47-
* Default: `false` (string)
48-
* Example:
49-
* `ng deploy` – Angular project is build in production mode before the deployment
50-
* `ng deploy --no-build` – Angular project is NOT build
46+
- **optional**
47+
- Default: `false` (string)
48+
- Example:
49+
- `ng deploy` – Angular project is build in production mode before the deployment
50+
- `ng deploy --no-build` – Angular project is NOT build
5151

5252
Skip build process during deployment.
5353
This can be used when you are sure that you haven't changed anything and want to deploy with the latest artifact.
5454
This command causes the `--configuration` setting to have no effect.
5555

5656
#### --create <a name="create"></a>
57-
* __optional__
58-
* Default: `false` (string)
59-
* Example:
60-
* `ng deploy --create` – Will create a new site if there is no site id or the site id is does not exists on netlify
57+
- **optional**
58+
- Default: `false` (string)
59+
- Example:
60+
- `ng deploy --create` – Will create a new site if there is no site id or the site id is does not exists on netlify
61+
62+
#### --base-href <a name="base-href"></a>
63+
64+
- **optional**
65+
- Default: `undefined` (string)
66+
- Example:
67+
- `ng deploy` – The tag `<base href="/">` remains unchanged in your `index.html`
68+
- `ng deploy --base-href=/the-repositoryname/` – The tag `<base href="/the-repositoryname/">` is added to your `index.html`
6169

70+
Specifies the base URL for the application being built.
71+
Same as `ng build --base-href=/XXX/`
6272
## License
6373

6474
MIT

0 commit comments

Comments
 (0)