bowtie
bowtie copied to clipboard
reduce bundle size
I don't know if it's possible but the compressed bundle for bowtie-demo is 1.13 MB. Not being an expert I wonder if this is still rather large and if it could be reduced.
Asset Size Chunks Chunk Names
bundle.js 4.17 MB 0 [emitted] [big] main
bundle.js.gz 1.13 MB [emitted] [big]
[0] ./~/react/react.js 56 bytes {0} [built]
[10] ./~/react-dom/index.js 59 bytes {0} [built]
[65] ./~/msgpack-lite/lib/browser.js 297 bytes {0} [built]
[156] ./~/antd/dist/antd.css 937 bytes {0} [built]
[585] ./src/app/dropdown.jsx 4.12 kB {0} [built]
[586] ./src/app/griddle.jsx 3.66 kB {0} [built]
[587] ./src/app/plotly.jsx 7.96 kB {0} [built]
[588] ./src/app/progress.jsx 4.63 kB {0} [built]
[589] ./src/app/slider.jsx 4.03 kB {0} [built]
[590] ./~/socket.io-client/lib/index.js 2.17 kB {0} [built]
[591] ./~/normalize.css/normalize.css 931 bytes {0} [built]
[701] ./src/app/index.jsx 10.9 kB {0} [built]
[878] ./~/griddle-react/modules/griddle.jsx.js 42.5 kB {0} [built]
[883] ./~/lodash.clonedeep/index.js 45 kB {0} [built]
[1029] ./~/msgpack-lite/lib/codec.js 185 bytes {0} [built]
+ 1280 hidden modules
ref: https://github.com/th0r/webpack-bundle-analyzer
https://github.com/plotly/plotly.js/blob/master/dist/README.md#partial-bundles https://plot.ly/javascript/modularizing-monolithic-javascript-projects/