Roots Discourse

Sage9: webpack tree shaking?

Is in sage9 tree-shaking enabled for production builds?

I import some parts of OpenLayers and it increases the overall size by 100kb (gzipped),
which is a bit much. Would it make sense to split these parts into separate JS files (HTTP2)?
Use a CDN for the OpenLayers JS files (the OpenLayers CSS file is very small).

This topic was automatically closed after 42 days. New replies are no longer allowed.