title: Why are pdf files not loading in Vue?
body: <pre><code>&lt;a :href = &quot;require('../../assets/pdf/white.pdf')&quot; target = &quot;_blank&quot;&gt;White&lt;/a&gt;
  </code></pre>
  <p>I am trying to let the user load a pdf when he clicks on a link. I tried using <code>require</code> as shown in this code snippet, but, I am getting an error that I may need an appropriate loader to handle this file type. I searched for this loader but couldn't find it. I even tried writing a normal path without <code>require</code>, but, it didn't work either and it just took me to the home page. What am I missing here?</p>