index.js 220 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 import Vue from 'vue' const componentsFiles = require.context(`./`, true, /.vue$/) componentsFiles.keys().forEach(path => { const component = componentsFiles(path).default Vue.component(component.name, component) })