I just create new vue app with default webpack template.
vue init webpack test
and created a basic plugin, following is my plugin code.
export default {
install(Vue, defaultOptions = {}) {
Vue.mixin({
mounted(){
console.log('myplugin mixin mounted')
}
})
}
}
When I import it in main.js, in the console, its print 3 times. Anyone know why?