sample-toast-plugin npm install --save-dev sample-toast-plugin import toast from 'sample-toast-plugin' Vue.use(toast) this.$toast('toast text!')