Due to the way we have set up our project, we will leave SimplePlugin as is and, in this section of our exploration of plugins in Vue, we'll add another folder inside our plugins folder in our project. We'll call this folder OptionsPlugin and inside of it, we'll again create an index.js file.
Next, let's update the main.js file, so that now it looks like this:
import Vue from 'vue'import App from './App.vue'//import SimplePlugin from './plugins/SimplePlugin'import OptionsPlugin from './plugins/OptionsPlugin'//Vue.use(SimplestPlugin)Vue.use(OptionsPlugin)Vue.config.productionTip = falsenew Vue({ render: h => h(App)}).$mount('#app')
Now, back in OptionsPlugin/index.js, we will add the following code: