diff --git a/src/karma-webpack.js b/src/karma-webpack.js index 388e442..232cce6 100644 --- a/src/karma-webpack.js +++ b/src/karma-webpack.js @@ -297,7 +297,7 @@ function createPreprocesor(/* config.basePath */ basePath, webpackPlugin) { } var outputPath = webpackPlugin.outputs[normalize(filename)] - file.path = path.join(basePath, outputPath) + file.path = normalize(path.join(basePath, outputPath)) done(err, content && content.toString()) }) @@ -318,4 +318,4 @@ module.exports = { webpackPlugin: ['type', Plugin], 'preprocessor:webpack': ['factory', createPreprocesor], 'middleware:webpackBlocker': ['factory', createWebpackBlocker] -} \ No newline at end of file +}