vue-chartist
vue-chartist copied to clipboard
Lazy loading (code splitting) of vue chartist
Is it posible to lazy load this plugin?
I am now importing this plugin in my main.js like this:
Vue.use(require('vue-chartist'), {
messageNoData: 'Missing data',
classNoData: 'empty'
})
#44 fixes the lazy-loading issue to the point where you don't have to include it everywhere. I have no idea if chartist is lazy-loadable though, so once you load vue-chartist you'll load all of chartist (fortunately it's quite small compared to the alternatives on the market).