Specifiesacustomfunctiontopost-processthegeneratedpublicpath.Thiscanbeusedtoprependorappenddynamicglobalvariablesthatareonlyavailableatruntime,like`__webpack_public_path__`. This would not be possible with just `publicPath`,sinceitstringifiesthevalues.
TherearesomecasesinwhichusingESmodulesisbeneficial,likeinthecaseof[moduleconcatenation](https://webpack.js.org/plugins/module-concatenation-plugin/) and [tree shaking](https://webpack.js.org/guides/tree-shaking/).
AnapplicationmightwanttoconfiguredifferentCDNhostsdependingonanenvironmentvariablethatisonlyavailablewhenrunningtheapplication.Thiscanbeanadvantage,asonlyonebuildoftheapplicationisnecessary,whichbehavesdifferentlydependingonenvironmentvariablesofthedeploymentenvironment.Sincefile-loaderisappliedwhencompilingtheapplication,andnotwhenrunningit,theenvironmentvariablecannotbeusedinthefile-loaderconfiguration.Awayaroundthisissettingthe`__webpack_public_path__` to the desired CDN host depending on the environment variable at the entrypoint of the application. The option `postTransformPublicPath` can be used to configure a custom path depending on a variable like `__webpack_public_path__`.