Skip to content

Instantly share code, notes, and snippets.

@talkingdotnet
Created January 10, 2018 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save talkingdotnet/f81d828b6e02b9b67a431b5a851a2a21 to your computer and use it in GitHub Desktop.
Save talkingdotnet/f81d828b6e02b9b67a431b5a851a2a21 to your computer and use it in GitHub Desktop.
app.UseSpa(spa =>
{
// To learn more about options for serving an Angular SPA from ASP.NET Core,
// see https://go.microsoft.com/fwlink/?linkid=864501
spa.Options.SourcePath = "ClientApp";
if (env.IsDevelopment())
{
spa.UseAngularCliServer(npmScript: "start");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment