wesaynih / infrastructure

© 2016 The Knights Who Say NIH — Do NOT fork this repository without permission.
http://frameless.io/
Other
0 stars 1 forks source link

Detect dead code removal regressions by tracking minified build size over time #30

Closed Robbert closed 8 years ago

Robbert commented 8 years ago

Ideally JavaScript modules are free of side-effects, and minifying a standalone module using the Closure Compiler should result in an empty output file. While highly desirable as this is, this is not always the case, and small changes in the code can result to large changes in build size.

Since small build size is essential to the performance of web applications, we should track the build size of every module to easily identify the offending modules.

Warning for large regressions in build size should also be reported, to prevent commits resulting in large fluctuations in the build size of the nightly or continuous build.