How to use Nuxt Plugins
Apr 27, 2021

- Download the plugin
$ npm i -S vue-textarea-autosize
2. Create a vueTextareaAutosize.js file in the /plugins folder. Import your plugin then pass it into Vue.use()
import Vue from 'vue'
import VueTextareaAutosize from 'vue-textarea-autosize'Vue.use(VueTextareaAutosize)
3. In nuxt.config.js, add ”~plugins/vueTextareaAutosize.js” to the plugins array.
plugins: [..."~plugins/vueTextareaAutosize.js"]
4. Rebuild your application
npm run dev