Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy loading (code splitting) of vue chartist #36

Open
larsmars opened this issue Aug 21, 2018 · 1 comment
Open

Lazy loading (code splitting) of vue chartist #36

larsmars opened this issue Aug 21, 2018 · 1 comment

Comments

@larsmars
Copy link

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'
})
@cjblomqvist
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants