codymikol / karma-webpack

Karma webpack Middleware
MIT License
829 stars 220 forks source link

Don't warn overriding [name].js to [name].js #550

Closed jason-ha closed 9 months ago

jason-ha commented 1 year ago

Expected Behavior / Situation

When webpack config's output.filename is '[name].js' there are no warnings.

Actual Behavior / Situation

When any output.filename is set, karma-webpack will warn even when result is the same setting as in:

karma-webpack does not currently support customized filenames via
webpack output.filename, if this is something you need consider opening an issue.
defaulting [name].js to [name].js.

Modification Proposal

Also check that value is not already '[name].js'. Okay to delete as replace; just don't warn.