title: Mounted hook not being called in Nuxt component in production (full static)?
body: <p>I have a component that is included on a page in Nuxt.</p>
  <p>This component has the following lifecycle hooks:</p>
  <pre><code>&lt;script&gt;
  export default {
      name: 'MyComponent',
      created() { alert('oh hai!') },
      mounted() { alert('oh hai again!') }
  }
  &lt;/script&gt;
  </code></pre>
  <p>This works fine in development. However when I export the site full static (nuxt generate) the code in the created and mounted hooks does not run -- the alerts never appear when the page is loaded.</p>
  <p>I feel like I must be missing something obvious, but I can't figure it out. Do the created/mounted lifecycle hooks get called on components if they are used on full static nuxt sites? If not, what is the recommended way to initialize the code that is used to control a component?</p>