title: How to use Angular Material with VS2017 SPA Templates
body: <p>I'm building an Angular2 app using the SPA templates and JavaScriptServices provided by Microsoft (<a href="https://blogs.msdn.microsoft.com/webdev/2017/02/14/building-single-page-applications-on-asp-net-core-with-javascriptservices/" rel="noreferrer">https://blogs.msdn.microsoft.com/webdev/2017/02/14/building-single-page-applications-on-asp-net-core-with-javascriptservices/</a>).</p>
  
  <p>I'd like to use Angular Material as opposed to Bootstrap for styling/themeing, however I'm unable to get it to work.</p>
  
  <p>Following the setup guide (<a href="https://material.angular.io/guide/getting-started" rel="noreferrer">https://material.angular.io/guide/getting-started</a>) is straightforward enough, however when it comes to including the theme assets (@angular/material/prebuilt-themes/...) from the npm package in the wwwroot dist output to make them available to the app I'm at a complete loss.</p>
  
  <p>I assume it's simply a case of modifying the WebPack configuration, however after an hour or two of tinkering and google searches I'm no closer to understanding what to do.</p>
  
  <p>Can anybody point me in the right direction?</p>
  
  <p>NB. Please don't suggest copying the files I need to the wwwroot or linking to a CDN etc.</p>