-
-
Notifications
You must be signed in to change notification settings - Fork 836
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
Big bundle size #561
Comments
Hi @bagaskarala well, this has nothing to do with Chart.js itself is quite huge. You should minify and gzip your bundle for production. If 46kb minified + gzipped is still to huge for you, I guess you have to look for a smaller charting solution :) Check out their documentation of choosing the right bundle: https://www.chartjs.org/docs/latest/getting-started/installation.html#selecting-the-correct-build As vue-chartjs is importing chartjs, you can chose the bundle by setting an alias in your webpack.conf and pointing to the bundle you want. |
so in my screenshot it use nonminified chart.js? so how i point to chart.min.js? |
Well it depends if you are analyzing your development build or your production build. In general (depending on your webpack.conf) you will minify your production build. You can point it in the alias section. Just take a look at this issue: #124 |
How to get small bundled dependencies? i think it still huge size
Actual Behavior
Environment
The text was updated successfully, but these errors were encountered: