You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes it's required to modify the publicPath while taking the defaultPublicPath as a parameter
Usecase: Multiple webpack builds on same page: and defaultPublicPath for each is something like: //mydomain.com/static/<APP_NAME>/ now I need to change it to //myOtherDomain.com/static/<APP_NAME>/
therefore, if I use the plugin like so:
new WebpackRequireFrom({methodName: 'get_public_path'})
PR for the same: #112
Sometimes it's required to modify the publicPath while taking the defaultPublicPath as a parameter
Usecase: Multiple webpack builds on same page: and defaultPublicPath for each is something like: //mydomain.com/static/<APP_NAME>/ now I need to change it to //myOtherDomain.com/static/<APP_NAME>/
therefore, if I use the plugin like so:
new WebpackRequireFrom({methodName: 'get_public_path'})
and have get_public_path defined like so:
window.get_public_path = defaultPublicPath => defaultPublicPath.replace('myDomain', 'myOtherDomain')
I would be able to achieve it for all apps
The text was updated successfully, but these errors were encountered: