Closed bitpshr closed 7 years ago
@@ master #28 diff @@
===================================
Files 1 1
Lines 34 34
Methods 0 0
Messages 0 0
Branches 4 4
===================================
Hits 34 34
Misses 0 0
Partials 0 0
Powered by Codecov. Last update 94b8ae8...b5b1db4
Type: feature
The following has been addressed in the PR:
Description:
This PR adds bundle size reporting to production webpack builds by generating a
report.html
file in thedist
folder. It makes use of bitpshr/webpack-bundle-analyzer-sunburst which was forked from th0r/webpack-bundle-analyzer and modified to support non-commercial sunbursts charts via a hand-rolled d3 implementation. I manually tested this on a generated Dojo 2 app, TodoMVC, and Monster Cards, and everything seemed fine. I verified that the size of each file on disk equaled the parsed file size in the report. It may be good for @matt-gadd or someone more familiar with webpack to double-check the output for an example project.We may also want @itorrey to work up a better design, but I don't think this is a blocker. It's slightly annoying that we can't see size information by the cursor when hovering chart segments.
Resolves #27