diff --git a/lib/karma-webpack/controller.js b/lib/karma-webpack/controller.js index 7843800..c1b1f19 100644 --- a/lib/karma-webpack/controller.js +++ b/lib/karma-webpack/controller.js @@ -22,12 +22,14 @@ class KW_Controller { updateWebpackOptions(newOptions) { if (newOptions.output && newOptions.output.filename) { - console.warn( - ` + if (newOptions.output.filename !== '[name].js') { + console.warn( + ` karma-webpack does not currently support customized filenames via webpack output.filename, if this is something you need consider opening an issue. defaulting ${newOptions.output.filename} to [name].js.`.trim() - ); + ); + } delete newOptions.output.filename; }