docs: add clarification regarding development in older browsers in Deployment guide (#32210)
Fixes #32199 PR Close #32210
This commit is contained in:
parent
ab30b2ad01
commit
9bbe67f286
|
@ -618,14 +618,14 @@ In `angular.json` add two new configuration sections under the `build` and `serv
|
||||||
...
|
...
|
||||||
},
|
},
|
||||||
"es5": {
|
"es5": {
|
||||||
"browserTarget": "app:build:es5"
|
"browserTarget": "<app-name>:build:es5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
</code-example>
|
</code-example>
|
||||||
|
|
||||||
You can then run the serve with this configuration.
|
You can then run the `ng serve` command with this configuration. Make sure to replace `<app-name>` (in `"<app-name>:build:es5"`) with the actual name of the app, as it appears under `projects` in `angular.json`. For example, if your app name is `myAngularApp` the config will become `"browserTarget": "myAngularApp:build:es5"`.
|
||||||
|
|
||||||
<code-example language="none" class="code-shell">
|
<code-example language="none" class="code-shell">
|
||||||
|
|
||||||
|
@ -680,7 +680,7 @@ Create an [ES5 serve configuration](guide/deployment#configuring-serve-for-es5)
|
||||||
|
|
||||||
<code-example language="json">
|
<code-example language="json">
|
||||||
|
|
||||||
"test": {
|
"e2e": {
|
||||||
"builder": "@angular-devkit/build-angular:protractor",
|
"builder": "@angular-devkit/build-angular:protractor",
|
||||||
"options": {
|
"options": {
|
||||||
...
|
...
|
||||||
|
@ -690,14 +690,14 @@ Create an [ES5 serve configuration](guide/deployment#configuring-serve-for-es5)
|
||||||
...
|
...
|
||||||
},
|
},
|
||||||
"es5": {
|
"es5": {
|
||||||
"devServerTarget": "app:serve:es5"
|
"devServerTarget": "<app-name>:serve:es5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
</code-example>
|
</code-example>
|
||||||
|
|
||||||
You can then run the e2e's with this configuration
|
You can then run the `ng e2e` command with this configuration. Make sure to replace `<app-name>` (in `"<app-name>:serve:es5"`) with the actual name of the app, as it appears under `projects` in `angular.json`. For example, if your app name is `myAngularApp` the config will become `"devServerTarget": "myAngularApp:serve:es5"`.
|
||||||
|
|
||||||
<code-example language="none" class="code-shell">
|
<code-example language="none" class="code-shell">
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue