title: Net Core 2.1 Angular project set up SSR config with Angular CLI 6
body: <p>I've created an angular application using the new Net Core 2.1 Angular template build in in Visual Studio 2017. This template uses a pure angular-cli setup in favor of the previous webpack config. </p>
  
  <p>The template uses angular 5.2 so I upgraded it to 6 using the <a href="https://update.angular.io/" rel="nofollow noreferrer">official update guide</a>. After some additional tweaks like removing the "--extract-css" as described <a href="https://stackoverflow.com/a/50754060/782598">here</a>, the application worked like a charm again.</p>
  
  <p>For SEO purpose I wanted to activate SSR so I used the <a href="https://docs.microsoft.com/nl-nl/aspnet/core/client-side/spa/angular?view=aspnetcore-2.1&amp;tabs=visual-studio#server-side-rendering" rel="nofollow noreferrer">official guide</a> provided by MS. This guide works when using Angular CLI 5 (used it before the migration) but I don't know how to do this with Angular CLI 6.</p>
  
  <p>The ".angular-cli.json" has of course been replaced by the "angular.json" file which has another setup. So I am a bit puzzled as how to set this up.</p>
  
  <p>My package.json looks like this:</p>
  
  <pre><code>{
   "name": "xxx",
   "version": "1.0.0",
   "private": true,
   "scripts": {
     "ng": "ng",
     "start": "ng serve",
     "build": "ng build",
     "test": "ng test",
     "lint": "ng lint",
     "e2e": "ng e2e"
   },
   ...
  </code></pre>