-
-
Notifications
You must be signed in to change notification settings - Fork 256
Can we have the name of the chunk in the filename template placeholder? #28
Comments
I'm interested too. |
When my html files in different levels, I wish [chunkname] to differentiate different chunks to add different publicPath . |
@evilebottnawi This would also be useful when you use webpack with django, you need predictable filenames to load static files so hashes are a no-no. On large projects there are instances that assets will have similar filenames, this would serve as a namespace to prevent filename conflict. And i think this issue is also similar to #114. |
@sokra Is it possible to implement this in |
If someone wants to PR in a change & tests for this, we will consider it. |
This seems to be impossible on a fundamental level. The apparently correct approach (which worked for me, after several hours of searching) is to implement "multiple configurations". |
Smth like:
loader: "file-loader?name=[chunkname]_[name].[ext]"
Or is there a workaround to achieve that?
The text was updated successfully, but these errors were encountered: