webpack-dev-middleware
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -110,7 +110,9 @@ /* | ||
var localPrefix = options.publicPath || "/"; | ||
if(/^https?:\/\//.test(localPrefix)) { | ||
localPrefix = "/" + localPrefix.replace(/^https?:\/\/[^\/]+\//, ""); | ||
if(url.indexOf(localPrefix) !== 0) { | ||
if(/^https?:\/\//.test(localPrefix)) { | ||
localPrefix = "/" + localPrefix.replace(/^https?:\/\/[^\/]+\//, ""); | ||
// fast exit if another directory requested | ||
if(url.indexOf(localPrefix) !== 0) return false; | ||
} else return false; | ||
} | ||
// fast exit if another directory requested | ||
if(url.indexOf(localPrefix) !== 0) return false; | ||
// get filename from request | ||
@@ -121,3 +123,3 @@ var filename = url.substr(localPrefix.length); | ||
} | ||
return pathJoin(compiler.outputPath, filename); | ||
return filename ? pathJoin(compiler.outputPath, filename) : compiler.outputPath; | ||
} | ||
@@ -124,0 +126,0 @@ |
{ | ||
"name": "webpack-dev-middleware", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "Offers a dev middleware for webpack, which arguments a live bundle to a directory", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7318
148