Augmint / augmint-web

Augmint Web Frontend
http://www.augmint.org
GNU Affero General Public License v3.0
17 stars 8 forks source link

Contracts to 1.0.3 (abiniser files cleanup) #571

Closed szerintedmi closed 5 years ago

szerintedmi commented 5 years ago

Nature of the PR: chore

Update to augmint-contracts 1.0.3 No contract changes only to use cleaned up abiniser files to reduce bundle size.

Bonus that I also fixed incorrect local deployment references which broke the UI in multiple ways when was using local ganache

Significant decrease of local abiniser folder (1.3Mb => 282Kb) but gzipped bundle size didn't decrease too much (719Kb => 651Kb). I assume a) not all abiniser file were referenced so not all were included in bundle b) abiniser files can be compressed well

Details:

abiniser directory size change:

Bundle before:

File sizes after gzip:
 511.83 KB (-52.08 KB)  build/static/js/2.bceb0156.chunk.js
  198.3 KB (+2.92 KB)    build/static/js/main.90b3dcbc.chunk.js
  10.61 KB (+7 B)        build/static/css/main.78687571.chunk.css
  763 B                  build/static/js/runtime~main.d653cc00.js

source-map-explorer reports abiniser as 797Kb (I assume it's uncompressed size)

Bundle after:

File sizes after gzip:
  511.83 KB (+2 B)   build/static/js/2.661157fa.chunk.js
  130.67 KB (+57 B)  build/static/js/main.5f5b2c50.chunk.js
  10.61 KB           build/static/css/main.1f0f3149.chunk.css
  763 B              build/static/js/runtime~main.d653cc00.js

source-map-explorer reports abiniser as 44Kb

Is connection necessary to test? If so which network?

szerintedmi commented 5 years ago

Deploy preview for augmint ready!

Built with commit 9bd42de8c87dd6aae2c816668c670a199e48ed56

https://deploy-preview-571--augmint.netlify.com