Skip to content

Commit

Permalink
fix(karma-webpack): normalize file.path (windows) (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
Teamop authored and michael-ciniawsky committed Sep 7, 2018
1 parent 46468f1 commit 855e21c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/karma-webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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())
})
Expand All @@ -318,4 +318,4 @@ module.exports = {
webpackPlugin: ['type', Plugin],
'preprocessor:webpack': ['factory', createPreprocesor],
'middleware:webpackBlocker': ['factory', createWebpackBlocker]
}
}

0 comments on commit 855e21c

Please sign in to comment.