silverstripe / webpack-config

Reusable webpack bundle declarations for Silverstripe modules
BSD 3-Clause "New" or "Revised" License
16 stars 9 forks source link

BUG Add ability to pass some options to the BundleAnalyzerPLugin so concurrent build of bundle can work #41

Closed maxime-rainville closed 4 years ago

maxime-rainville commented 5 years ago

Just realise the bundle analyser doesn't work on module that output multiple bundle because it tries to start a new server for each bundle.

This fix allows us to pass extra option to each bundle entry so we can do things like provide each entry a different port.

maxime-rainville commented 4 years ago

I added the bundle analyzer bit a few months ago. That fires up a local server to display data about your bundle size. That works well when your build only produces one bundle. However some of our builds produces multiple bundles which leads to a port clash between the local webservers.

NightJar commented 4 years ago

Thanks for explaining. I've never seen/used/heard of this feature before :)