vue-matchup
Version:
A rollup + vue component development template
18 lines (13 loc) • 330 B
JavaScript
import Matchup from 'components/Matchup';
const components = [
Matchup
];
const install = function (Vue, opts = {}) {
components.forEach(component => {
Vue.component(component.name, component);
});
}
if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue);
}
export default install