Open hiendv opened 7 years ago
Actually in a related project Vue-Awesome I already put this into readme. I'll update that for this project later. As for now you can refer to Vue-Awesome's readme and make similar updates.
From my point of view, transpiling these icons could be the better way.
ERROR in js/vendor.39228e8c3d000eeb2e39.js from UglifyJs
Unexpected token: name (warn) [./~/vue-octicon/util.js:3,0][js/vendor.39228e8c3d000eeb2e39.js:13682,4]
This is how I solved it, by submodule/download this repo to src/components directory
import Octicon from '@/components/vue-octicon/src/components/Octicon.vue'
import '@/components/vue-octicon/src/icons/device-desktop'
...
Reproduce:
vue init webpack test
npm run build
Workaround: Using this webpack configuration