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
{{ message }}
This repository was archived by the owner on Mar 17, 2021. It is now read-only.
When I have got 2 entry points of the same name, but in different directories, eg.
src/componentA/template.html
src/componentB/template.html
and want to emit them as separate chunks to my dist folder, the one file overwrites another file and it is not desirable behaviour.
I can of course change name property for name:[name][hash].[ext] and it does the trick, but I just want to separate files of the same names, not to solve cache problems and what's more, if I emit eg. .html files as in the example and use dev-server, it emits new hashed .html file on every build (when I edit html files) what is not recommended as mentioned in this webpack-dev-server issue.
The [id] placeholder indicating the number of the chunk would be the best way to get what I want. The output.filename and extract-text-webpack-plugin supports [id] for example. Would it be possible to add [id] placeholder support or maybe there's any other solution of my problem?
The text was updated successfully, but these errors were encountered:
Lets assume that I use
file-loader
this way:When I have got 2 entry points of the same name, but in different directories, eg.
src/componentA/template.html
src/componentB/template.html
and want to emit them as separate chunks to my
dist
folder, the one file overwrites another file and it is not desirable behaviour.I can of course change name property for
name:[name][hash].[ext]
and it does the trick, but I just want to separate files of the same names, not to solve cache problems and what's more, if I emit eg..html
files as in the example and usedev-server
, it emits new hashed.html
file on every build (when I edit html files) what is not recommended as mentioned in this webpack-dev-server issue.The [id] placeholder indicating the number of the chunk would be the best way to get what I want. The
output.filename
andextract-text-webpack-plugin
supports [id] for example. Would it be possible to add [id] placeholder support or maybe there's any other solution of my problem?The text was updated successfully, but these errors were encountered: