Closed tkohr closed 2 months ago
Working good, thx!
But shouldn't we keep the HardSourceWebpackPlugin
?
You're right, I've removed the commit to get rid of the HardSourceWebpackPlugin
here, as it is finally unrelated.
So we should wait to merge this PR until we use a v4 lib version without ol.
Closing this, having been superseeded by https://github.com/Geoportail-Luxembourg/geoportailv3/pull/3143
PR removes
HardSourceWebpackPlugin
and reactivatesUglifyJsPlugin
to minify prod js.HardSourceWebpackPlugin
makes build run out of memory when usingUglifyJsPlugin
for prod and seems to cause further problems in dev mode.Edit: It seems to be the bundling of the two ol instances that actually cause the out of memory error with
UglifyJsPlugin
and not theHardSourceWebpackPlugin
. So this PR depends on a lib version without ol. However, using such a version in v3 currently still causes conflicts between mapbox/maplibre. They must be resolved here or within the 3D PR first.