From 855e21c81074eb294a94bcf9deaedae5003cc72d Mon Sep 17 00:00:00 2001 From: Terry Date: Fri, 7 Sep 2018 22:41:52 +0800 Subject: [PATCH] fix(karma-webpack): normalize `file.path` (`windows`) (#354) --- src/karma-webpack.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}