Writing Custom Vue Plugins

Find out how to write and use custom Vue plugins and what we can achieve with them.

Vue is a relatively complete framework. It offers most of the features we need in our everyday apps. There are, however, cases where Vue’s default functionality doesn’t cover what we, our users or stakeholders, need. To allow for such additions, Vue offers plugins.

What are Vue plugins?

Vue plugins are pieces of functionality added to Vue. We often see them work with custom libraries. They can offer additional components, instance properties, and methods, or Vuex stores. It is up to the developer which kind of functionality they want to add to Vue.

Writing custom Vue plugins

A Vue ...