-
Notifications
You must be signed in to change notification settings - Fork 892
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
281 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/node_modules/karma-webpack/lib/webpack/plugin.js b/node_modules/karma-webpack/lib/webpack/plugin.js | ||
index 47b993c..3b75a9e 100644 | ||
--- a/node_modules/karma-webpack/lib/webpack/plugin.js | ||
+++ b/node_modules/karma-webpack/lib/webpack/plugin.js | ||
@@ -1,4 +1,5 @@ | ||
const fs = require('fs'); | ||
+const path = require('path'); | ||
|
||
class KW_WebpackPlugin { | ||
constructor(options) { | ||
@@ -14,9 +15,10 @@ class KW_WebpackPlugin { | ||
// read generated file content and store for karma preprocessor | ||
this.controller.bundlesContent = {}; | ||
stats.toJson().assets.forEach((webpackFileObj) => { | ||
- const filePath = `${compiler.options.output.path}/${ | ||
+ const filePath = path.resolve( | ||
+ compiler.options.output.path, | ||
webpackFileObj.name | ||
- }`; | ||
+ ); | ||
this.controller.bundlesContent[webpackFileObj.name] = fs.readFileSync( | ||
filePath, | ||
'utf-8' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.