-
Notifications
You must be signed in to change notification settings - Fork 5
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
Clean up dependencies #315
Comments
Using source-map-explorer, I analyzed our Webpack vendors file. Here's a screenshot of that analysis: You can see where we can easily improve our bundle size:
Just by addressing the first two points, we can reduce the bundle size by over 1 MB. |
Just the font-awesome thing reduced the bundle size from around 2 MB to around 1 MB. I think it would be good to reduce the size further to a maximum of 500 KB, but that's not a priority. |
JSKOS validation is only required in the |
So far, I wasn't able to find a way to conditionally import a module when using Vue.js. I'm sure there's some solution using Webpack, but there doesn't seem to be a simple way to do it. Also, I just noticed that validation is included in I'm still surprised that it takes up around 100 KB, it feel like it should be a lot less than that... Edit: The minified browser version of |
Update: Using babel-plugin-lodash, I was able to reduce the size of lodash without any effort. It only saved 30 KB or so, but better than nothing. Here's a current image for the dependency sizes: |
Moved this to 2.0.0 because the changes resulting in the biggest effect are already implemented. |
Cocoda has too many dependencies, causing the app bundle to be pretty big. Analyze which dependencies take up most of that space and find a way to remove them.
The text was updated successfully, but these errors were encountered: