Skip to content

Commit

Permalink
fix(karma-webpack): dont include the os.tmpdir in the webpack public …
Browse files Browse the repository at this point in the history
…path
  • Loading branch information
pat841 committed Aug 27, 2018
1 parent 9ca87d4 commit 65fec5d
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 @@ -69,7 +69,7 @@ function Plugin(
// Must have the common _karma_webpack_ prefix on path here to avoid
// https://github.com/webpack/webpack/issues/645
webpackOptions.output.path = path.join(os.tmpdir(), '_karma_webpack_', indexPath, '/')
webpackOptions.output.publicPath = path.join(os.tmpdir(), '_karma_webpack_', publicPath, '/')
webpackOptions.output.publicPath = path.join('/_karma_webpack_', publicPath, '/')
webpackOptions.output.filename = '[name]'
if (includeIndex) {
webpackOptions.output.jsonpFunction = `webpackJsonp${index}`
Expand Down Expand Up @@ -197,7 +197,7 @@ function Plugin(
compiler.plugin('invalid', invalid.bind(this))
}

webpackMiddlewareOptions.publicPath = path.join(os.tmpdir(), '_karma_webpack_', '/')
webpackMiddlewareOptions.publicPath = '/_karma_webpack_/'
var middleware = this.middleware = new webpackDevMiddleware(compiler, webpackMiddlewareOptions)

customFileHandlers.push({
Expand Down

0 comments on commit 65fec5d

Please sign in to comment.