abcnews / aunty

A toolkit for working with ABC News projects
https://www.npmjs.com/package/@abcnews/aunty
MIT License
32 stars 5 forks source link

Make bundle analyzer server port dynamic #98

Closed colingourlay closed 5 years ago

colingourlay commented 5 years ago

Change: ensure bundle analyzer ports are unique by basing them on the server port, so multiple project dev servers can run without conflict.

Previously, the bundle analyzer port is 8888 + the index of the webpack config (usually there's only one). If you try to start a second aunty project's dev server on an alternative port, it blows up because the bundle analyzer port clashes with the first project.