Option to define language chunk filenames #3769
-
The language chunk names like |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
@alexdima would that be complex to implement? Reading the codebase, I am unsure where the chunk generation happens for languages. I assume from here: But since those are require call, I don't see how we can add webpackChunkName magic comments here. |
Beta Was this translation helpful? Give feedback.
-
I think the issue may be that this plugin does not pass any filename for the chunks so webpack automatically assigns some. It seems |
Beta Was this translation helpful? Give feedback.
-
FWIW, Webpack 5 allows a function for |
Beta Was this translation helpful? Give feedback.
-
Webpack 5 emits better autogenerated names, but still pretty ugly:
It can be remedied with |
Beta Was this translation helpful? Give feedback.
FWIW, Webpack 5 allows a function for
output.chunkFilename
so this should now be workaroundable.