-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modifying URL for various assets, not just chunks #8
Comments
methodName
method don't have any arguments ?methodName( )
method don't have any arguments ?
|
@agoldis
For all bundle assets: Typically, This can only be done if you supply an argument to the |
@5punk I see your point, make sense! |
Absolutely. |
@5punk If you have a solution - that would be awesome!!! |
@5punk hey, I was looking again into the issue and invested some time into trying to find a way to resolve it. I believe you want to obtain the path of imported resource as an argument to So var publicPath = `__webpack_public_path__ + ${JSON.stringify(outputPath)}`; So, I there's no way to know would be the full required path. Another approach would tweak the network layer (in a manner similar to I can advise to use specific module / loader capabilities for manipulating the URL of a resource. E.g. https://github.com/webpack-contrib/file-loader#publicpath can be function that accepts resource name. Keep in ming, though, that the methods you provide is only invoked at build time. If you have any suggestion / idea please share :) |
I spent some time looking and digging through webpack itself. The whole purpose is to have some baseref dynamically set. Where chunks from different cdn sources can be supported simultaneously. I'm going to spend some time on gitter with the nice folk of webpack, see what we can brainstorm! |
methodName( )
method don't have any arguments ?
Hi there, Has there been progress on this issue? I'm trying this plugin, and I see that the chunks are using the correct Is there a way to make this work? Thanks! EDIT: We are using Webpack 4. Would this issue be fixed if we update to Webpack 5? |
@orballo no progress unfortunately :( |
I want allot different CND for different chunk by their chunk name.
But I can't found any arguments in
methodName( )
.The text was updated successfully, but these errors were encountered: