I want to determine the file name output without the [name] string pattern. I have multiple entries and want to determine the file name by logic which uses the Entry. Something like this:
output: {
path: getFilePath(),
filename: getFileName(),
},
The problem is the entry is not known when I run the webpack config.
I checked in the Webpack multiple entries docs and didn't find any way to do it.
Then, I found when you give the
filenamea function, not running it like here:The Webpack will call this function with an Entry argument and it will contain the entry it running now, for example: