ng serve documentation (specifically --public-host/live-reload-client) #8986
Labels
area: @angular/cli
area: @angular-devkit/build-angular
area: docs
Related to the documentation
devkit/build-angular:library
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
target: patch
This PR is targeted for the next patch release
type: bug/fix
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Versions
Repro steps
I'm integrating the Angular CLI with Visual Studio 2017 & an ASP.NET Core 2.0 application where I successfully have the live reloading working when I make a change to my Angular components. I have the following script tags in my _layout.cshtml during development.
<script type="text/javascript" src="http://localhost:4200/inline.bundle.js"></script>etc.
Desired behavior
However, for this to work I stumbled upon a post that mentioned I had to configure my package.json "start" script as follows:
"scripts": {
"start": "ng serve --live-reload-client http://localhost:4200/",
I would like:
1.) To better understand this and what it is doing behind the scenes. From what I understand ng serve uses webpack dev server under the covers so I'm wondering how this configures it or what the equivalent setting in the webpack.config.json file would be.
2.) ng serve docs have this listed as public-host (aka live-client-reload) but not much more than that. If there was more information it might help clear up 1.)
The text was updated successfully, but these errors were encountered: