Skip to content
This repository was archived by the owner on Sep 2, 2020. It is now read-only.

Commit a6fbf09

Browse files
committed
Chore: add bundlesize test
This patch adds production build output gzipped file size checks to the test script so that any future efforts, including changes to the bundler, may only introduce known size differences. Note: • Initial limits were taken from the present gzipped chunk sizes rounded up to the 10th of a kibibyte. • Only production JavaScript and CSS files are checked. • The package.json bundlesize configuration options should be moved to a separate file when possible. siddharthkp/bundlesize#171 • A leading zero is necessary for floating point limits less than one. Without a leading zero, checks against these limits appear to always pass. • bundlesize was not added to dev because it doesn't support any quiet options and is verbose. Tests are only executed at precommit. • JEDEC notation is used. bundlesize internally uses Bytes utility which only supports base 2 units. https://github.com/visionmedia/bytes.js
1 parent 106d474 commit a6fbf09

File tree

2 files changed

+389
-178
lines changed

2 files changed

+389
-178
lines changed

0 commit comments

Comments
 (0)