Static GitHub Issues

[837] Where to put code that runs once on app startup (no main.js)

prev: How do I use local Storage?
next: Dynamically define components in a single file component

In non nuxjs apps you put code that has run once on app startup in main.js or app.vue. Both are not available in nuxtjs. Where do I put this code?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c718">#c718</a>)</em></sub></div>