91db0c1a56a57221f27401437d79f015ec6f44ca.svn-base 297 B

123456789
  1. import Vue from 'vue'
  2. import SvgIcon from '@/components/SvgIcon'// svg component
  3. // register globally
  4. Vue.component('svg-icon', SvgIcon)
  5. const req = require.context('./svg', false, /\.svg$/)
  6. const requireAll = requireContext => requireContext.keys().map(requireContext)
  7. requireAll(req)