title: Vuepress - Add component to each page
body: <p>The documentation in regards to this is quite short. I want to add a Vue component to each page in the app, without having to manually declare it in each template.</p>
  
  <p>I managed to add a <code>enhanceApp.js</code> file and add this to it:</p>
  
  <pre><code>import MyComponent from './components/my-component'
  
  export default ({
    Vue,
    options,
    router,
    siteData
  }) =&gt; {
    Vue.component('MyComponent', MyComponent)
  }
  </code></pre>
  
  <p>The app runs but I don't see the component anywhere. Any tips or other ways I can achieve this? Thanks!</p>