Dorset-Council-UK / GIFramework-Maps

A .NET based web map built with OpenLayers and Bootstrap
MIT License
14 stars 8 forks source link

Reduce output bundle size #42

Open RobQuincey-DC opened 1 year ago

RobQuincey-DC commented 1 year ago

Currently the output from webpack for the client side mapping code is quite large (2-3MB on production mode). This is expected as its a large application, but this generates warning in webpack and could be better optimised by either reducing the bundle size further, or by using splitting behaviour.

At the time this was a low priority and a single 2-3MB js file was considered good enough, but this could be improved.

The warnings are turned off in the webpack.prod.js.

RobQuincey-DC commented 4 months ago

Using the source-map-explorer package produced this visualisation

Source map explorer output

There are some areas for improvement there