You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -147,6 +148,16 @@ You can also add your own env files other than `dev` and `prod` by creating a
147
148
`src/app/environments/environment.{NAME}.ts` and use them by using the `--env=NAME`
148
149
flag on the build/serve commands.
149
150
151
+
### Base tag handling in index.html
152
+
153
+
You can modify base tag (`<base href="/">`) in your index.html by using `--base-href your-url` option. It's useful when building or serving for different environments.
154
+
155
+
```bash
156
+
# Sets base tag href to /myUrl/ in your index.html
157
+
ng build --base-href /myUrl/
158
+
ng serve --base-href /myUrl/
159
+
```
160
+
150
161
### Bundling
151
162
152
163
Builds created with the `-prod` flag via `ng build -prod` or `ng serve -prod` bundle
0 commit comments