title: Load static images on ASP.NET Core + Angular 2 template for Visual Studio
body: <p>I have a qiute a lot of images that are shared across Angular components/pages, so I've created an <code>images</code> folder inside the <code>wwwroot</code> folder.</p>
  
  <p>But whenever I try to reference an image from  <code>any.component.html</code> I get the following error:</p>
  
  <blockquote>
    <p>Prerendering failed because of error: Error: Cannot find module
    "../build/images/logo/logo-light.png"</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/RCnDF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RCnDF.png" alt="enter image description here"></a></p>
  
  <p>I tried to change the path from <code>../build</code> to <code>build</code>, <code>~/build</code> etc. But that doesn't do the trick.</p>
  
  <p>How can I solve this issue?</p>