'Dynamic script content when calling spa.UseAngularCliServer(npmScript: "start");
I need to pass in dynamic content into the start script for Angular when starting it from .Net.
Right now I have: spa.UseAngularCliServer(npmScript: "start");
And package.json has "start": "ng serve --public-host server.domain.com",
I don't want to hard code the public-host value into the json file - I want to dynamically calculate the public-host value and use that when I start Angular.
Any suggestions on how to dynamically insert values into the start script?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
