title: Angular Universal: How to create an app shell and only pre-render the shell?
body: <p><strong>Background</strong></p>
  
  <p>In order to speed up the perceived performance of my angular 7 app, I am trying to add an app shell to my application, and pre-render that shell using angular universal. To do so, I am following these <a href="https://github.com/angular/angular-cli/wiki/stories-app-shell" rel="nofollow noreferrer">steps</a>.</p>
  
  <p><strong>Problem</strong></p>
  
  <p>When I execute the command from Step 3 from the above link (<code>ng run my-app:app-shell</code>), the process fails because it appears that angular universal is trying to build my entire app using the node environment, and there are portions of my app that are not compatible with angular universal. I don't need the entire app to be rendered or be compatible with angular universal, only the app shell component.</p>
  
  <p><strong>Questions</strong></p>
  
  <ol>
  <li>How do I only include the app shell to be pre-rendered during the <code>ng run my-app:app-shell</code> command?</li>
  <li>Also, that command builds the rest of the app in development mode. How do I trigger a prod build instead?</li>
  </ol>