Dodanie prototypu na Vue za pomocą Nuxt

// create in plugins/hello
export default ({ app }, inject) => {
  // Inject $hello(msg) in Vue, context and store.
  inject('hello', msg => console.log(`Hello ${msg}!`))
}

// add in nuxt.config.js
export default {
  plugins: ['~/plugins/hello.js']
}
Aggressive Ant