Skip to content

Commit

Permalink
fix(karma-webpack): Override output.filename with '[name].js' (#381)
Browse files Browse the repository at this point in the history

Closes #322
  • Loading branch information
matthieu-foucault authored Dec 17, 2018
1 parent e207fe5 commit 2f47250
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/karma-webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,8 @@ function Plugin(
webpackOptions.output.jsonpFunction = `webpackJsonp${index}`;
}

if (!webpackOptions.output.filename) {
webpackOptions.output.filename = '[name].js';
}
// Enforce that the output filename is dynamic and doesn't contain chunkhashes
webpackOptions.output.filename = '[name].js';

if (!webpackOptions.output.chunkFilename) {
webpackOptions.output.chunkFilename = '[id].bundle.js';
Expand Down

0 comments on commit 2f47250

Please sign in to comment.