javascript - Is there any "publicPath" option or similar in Webpack DllPlugin? -


i'm using mxstbr/react-boilerplate uses great dllplugin, application served nginx under /admin, fails 404 when trying reactboilerplatedeps.dll.js file root url (it hits http://localhost/reactboilerplatedeps.dll.js instead of http://localhost/admin/reactboilerplatedeps.dll.js).

is there similar concept webpack's publicpath option on dllplugin or way of telling dllplugin being used under path prefix?

i did adding prefix where dll scripts appended body:

dllnames.foreach((dllname) => body.append(`<script data-dll='true' src='/${dllname}.dll.js'></script>`)); dllnames.foreach((dllname) => body.append(`<script data-dll='true' src='/${someprefix}${dllname}.dll.js'></script>`));

also, depending on how proxying requests, should ensure dev server handles filename correctly. if passing prefix dev server, should remove request path here.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -