vue-chartist icon indicating copy to clipboard operation
vue-chartist copied to clipboard

Lazy loading (code splitting) of vue chartist

Open larsmars opened this issue 6 years ago • 1 comments

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'
})

larsmars avatar Aug 21 '18 11:08 larsmars

#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).

cjblomqvist avatar Oct 31 '19 09:10 cjblomqvist