w3champions / website

The webpage for the www.w3champions.com community project.
49 stars 57 forks source link

Use direct import for `lodash` to reduce build size #639

Closed Rotzbua closed 1 year ago

Rotzbua commented 1 year ago

Changes

Test by compiling

Difference

Size: -60 KiB Gzipped: -20 KiB

Current build

File                                   Size        Gzipped

dist\js\chunk-vendors.23b7ce38.js      977.84 KiB  281.33 KiB
dist\js\app.24457c62.js                778.11 KiB  296.48 KiB
dist\js\admin-view.d8e430e8.js         368.43 KiB  105.71 KiB
dist\js\840.c7ea0ea6.js                298.85 KiB  216.59 KiB
dist\env.js                            0.98 KiB    0.40 KiB
dist\css\chunk-vendors.01cf3aae.css    746.54 KiB  104.36 KiB
dist\css\app.755083fb.css              26.02 KiB   5.92 KiB
dist\css\admin-view.2e25e0f9.css       5.71 KiB    1.13 KiB

Lodash optimized

File                                   Size        Gzipped

dist\js\chunk-vendors.f5f0c372.js      916.08 KiB  260.09 KiB
dist\js\app.e5b6a122.js                778.27 KiB  296.64 KiB
dist\js\admin-view.244bfdc7.js         369.80 KiB  106.26 KiB
dist\js\840.c7ea0ea6.js                298.85 KiB  216.59 KiB
dist\env.js                            0.98 KiB    0.40 KiB
dist\css\chunk-vendors.2a195454.css    746.55 KiB  104.36 KiB
dist\css\app.b65f6c24.css              26.10 KiB   5.92 KiB
dist\css\admin-view.2e25e0f9.css       5.71 KiB    1.13 KiB
gustav87 commented 1 year ago

Nice change. Thanks for providing the bundle size difference!

gustav87 commented 1 year ago

Could you resolve conflict and repush?

EDIT: Tried the merge conflict resolver in github for the first time so I think it's solved.