title: How do I split components into smaller files while using Vuejs from CDN and running Codekit?
body: <p>I should preface this that this is not a serious app, but instead a framework for quick prototyping so performance or compatibility isn't an issue.</p>
  <p>I'm currently running Codekit to get my Scss and Build folder. And I've included VueJS from a CDN in the header. I also have a components.js file which contains the following:</p>
  <pre><code>const app = Vue.createApp({});
  
  app.component(&quot;list-heading&quot;, {
    props: {
      title: {
        type: String,
        default: null,
      },
      extra: {
        type: String,
        default: null,
      },
    },
    template: `
  
  &lt;div class=&quot;list-heading&quot;&gt;
      &lt;h4&gt;{{title}}&lt;/h4&gt;
      &lt;div v-if=&quot;extra&quot;&gt;{{extra}}&lt;/div&gt;
  &lt;/div&gt;
  
  `,
  });
  
  app.mount(&quot;#app&quot;);
  </code></pre>
  <p>And this works exactly how I want it. Except, I'd like to just for the sake of being organised split up each component in small files and import them, but can't manage to sort it out. Like this:</p>
  <pre><code>const app = Vue.createApp({});
  
  import './list-heading.js';
  
  app.mount(&quot;#app&quot;);
  </code></pre>
  <p>I know the last code isn't functional, it's just for illustration purposes. Anyone know how to do this?</p>