Skip to content

Commit 855e21c

Browse files
Teamopmichael-ciniawsky
authored andcommitted
fix(karma-webpack): normalize file.path (windows) (#354)
1 parent 46468f1 commit 855e21c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/karma-webpack.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ function createPreprocesor(/* config.basePath */ basePath, webpackPlugin) {
297297
}
298298

299299
var outputPath = webpackPlugin.outputs[normalize(filename)]
300-
file.path = path.join(basePath, outputPath)
300+
file.path = normalize(path.join(basePath, outputPath))
301301

302302
done(err, content && content.toString())
303303
})
@@ -318,4 +318,4 @@ module.exports = {
318318
webpackPlugin: ['type', Plugin],
319319
'preprocessor:webpack': ['factory', createPreprocesor],
320320
'middleware:webpackBlocker': ['factory', createWebpackBlocker]
321-
}
321+
}

0 commit comments

Comments
 (0)