Closed fabio-rsys closed 4 years ago
You can create a plugin inside plugins folder. For exemple:
import Vue from 'vue'
import VueTheMask from 'vue-the-mask'
Vue.use(VueTheMask)
After, in nuxt.config.js you need to register the plugin:
plugins: [
'~plugins/vue-the-mask.js'
]
That's it. It worked for me.
did this got resolved? it would be cool to know to close the issue :sweat_smile:
Yes it worked just fine, forgot to reply, sorry!
Hello guys, I've used this plugin locally on a page and it worked just fine.
Now I'm trying to import the mask directive globally on my project, I use Nuxt.
Have someone done this and could shed some light?