Closed Maiquu closed 5 years ago
@Maiquu, I'm not 100% sure what you're trying to say and I think this is caused by the fact that both the main webpack object and the plugin options take an output.filename
... Could you clear that up a bit?
The output.filename
I mentioned above is from the main webpack object. Sorry for the confusion.
Ah, I get it now and it should be fixed in master
, in 8f4090e96 specifically. Could you try installing it directly from there and reporting if that fixes it for you?
npm install --save-dev cascornelissen/svg-spritemap-webpack-plugin#master
Yep, no issues spotted. Thanks for your quick response.
Thanks for your quick response as well! I'll leave the issue open until I release a new patch version containing the fix ✌️
@Maiquu, a fix for this issue has been released in version 3.3.6
🚀
Using
webpack 4.x
,svg-spritemap-webpack-plugin 3.3.5
, Webpack configuration is something like this:If I define
output.filename
as a string without any placeholders, dummy module's chunk uses that string as a postfix to define its filename. This causes the internal check to remove the dummy chunk fail.It can be easily fixed if you define a
output.filename
with placeholders or defineoutput.chunkFilename
. Latter is the one I preffered. Not sure if this is considered nitpicking.