title: Exclude json file from being bundled in Vue
body: <p>I'm trying to exclude JSON file from being bundled in Vue. I read <a href="https://stackoverflow.com/questions/43428145">this answer</a> but it didn't really helped me to do what I want to do.</p>
  
  <p>I created a Vue project from scratch:</p>
  
  <pre><code>vue create hello-world
  </code></pre>
  
  <p>and I added an <code>import</code> in the <code>view</code> file <code>Home.vue</code> so now it looks like this:</p>
  
  <pre><code>&lt;template&gt;
    &lt;div&gt;
     &lt;div v-html="message"&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
  import jsonData from '../assets/test.json'
  export default {
    name: 'home',
    data () {
      return {
        message: jsonData
      }
    }
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>and overall project structure is out of the box and looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/vg8xu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/vg8xu.png" alt="enter image description here"></a></p>
  
  <p>So, if I'll use <code>npm run build</code> it gets packed into <code>dist\js\app.ab0cf9cb.js</code> which is expected and I want it to stay separate file in the <code>dist</code> folder.</p>
  
  <p>As far as I understand I need to use <code>externals</code> <a href="https://webpack.js.org/configuration/externals/" rel="noreferrer">configuration from webpack</a>, which in my case means I need to create a <code>vue.config.js</code> and modifying it in the proper way. </p>
  
  <p>I did try a few things with <code>vue.config.js</code>, for example:</p>
  
  <pre><code>module.exports = {
    configureWebpack: {
      externals: {
        jsonData: '../assets/test.json'
      }
    }
  }
  </code></pre>
  
  <p>and changing an import to be <code>import jsonData from 'jsonData'</code> but no luck</p>
  
  <p><strong>My question is:</strong>
  What exactly I should put into <code>vue.config.js</code> to exclude this file? Or, to be more generic, what should I do to exclude this file?</p>