title: Ways to import a JSON file in public folder in Vue-CLI
body: <p>I want to import a JSON file to use it, I need it to modify it in the future so I put it in <code>public</code> folder not <code>assets</code>, When I refer to it like this <code>import JSON from ../../public/Data.json</code> it works but I don't think so after building project can be resolved because after building there is no <code>public</code> folder. So I tried this :</p>
  
  <pre><code>let addr = process.env.BASE_URL;
  import JSON from `${addr}Data.json`;
  </code></pre>
  
  <p>But It throws an error : <strong><em>SyntaxError</em></strong>
  I'm confused now which way is the best and is there another way ?</p>