router icon indicating copy to clipboard operation
router copied to clipboard

Reduce the bundle size with Google Closure Compiler

Open vlukashov opened this issue 7 years ago • 2 comments

Investigate whether or not using the Google Closure Compiler reduces the minified gzipped bundle size for the core package. If so, switch from uglify-es onto google-closure-compiler for production builds.

DoD:

  • build the core package with gcc and make sure all tests pass
  • measure the difference in the prodution bundle size between gcc and uglify-es
  • if gcc produces a smaller bundle, replace uglify-es with gcc
  • in any case write a summary of the findings in this ticket

vlukashov avatar Apr 27 '18 14:04 vlukashov

About reducing the package size... Could it make sense to remove some functionality? And allow to import it optionally. As for example the animation functionality.

abdonrd avatar May 26 '20 08:05 abdonrd

Also about reduce size: https://github.com/vaadin/vaadin-router/pull/464

abdonrd avatar May 26 '20 10:05 abdonrd