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

Minimize certain dependencies that bloat the bundle size #328

Open
nichtich opened this issue Apr 4, 2019 · 1 comment
Open

Minimize certain dependencies that bloat the bundle size #328

nichtich opened this issue Apr 4, 2019 · 1 comment
Labels
cleanup code cleanup, refactoring, testing...
Milestone

Comments

@nichtich
Copy link
Member

nichtich commented Apr 4, 2019

As discussed in #315 the size of Cocoda JavaScript can be reduced by only using the parts we need (see this). This step may also help to also reduce and customize boostrap CSS in a another step (see theming).

@nichtich nichtich added the cleanup code cleanup, refactoring, testing... label Apr 4, 2019
@nichtich nichtich added this to the 2.0.0 milestone Apr 4, 2019
@stefandesu stefandesu changed the title Reduce boostrap-vue Minimize certain dependencies that bloat the bundle size Feb 11, 2022
@stefandesu
Copy link
Member

I adjusted the title of the issue to encompass other dependencies as well. The following dependencies are our biggest "offenders" in terms of bundle size:

  • bootstrap-vue (should be removed if possible)
  • lodash (should be removed or reduced to as few methods as possible)
  • Vue.js (I guess it could be improved with Migrate to Vue.js 3 #583, but not sure how much difference it will make)
  • FontAwesome icons (we could use unplugin-icons instead, like we did in coli-ana)

I have already (in 65b88c6) updated our own dependencies, cocoda-sdk and gbv-login-client, so that dependencies are not duplicated. This was an issue due to different dependency versions (e.g. axios in cocoda-sdk) and suboptimal build system (gbv-login-client; fixed by switching to ES modules and using the same build script as in cocoda-sdk).

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

No branches or pull requests

2 participants