We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90b10b1 commit 7b828ecCopy full SHA for 7b828ec
middleware.js
@@ -106,8 +106,8 @@ module.exports = function(compiler, options) {
106
// publicPrefix is the folder our bundle should be in
107
var localPrefix = options.publicPath || "/";
108
if(url.indexOf(localPrefix) !== 0) {
109
- if(/^https?:\/\//.test(localPrefix)) {
110
- localPrefix = "/" + localPrefix.replace(/^https?:\/\/[^\/]+\//, "");
+ if(/^(https?:)?\/\//.test(localPrefix)) {
+ localPrefix = "/" + localPrefix.replace(/^(https?:)?\/\/[^\/]+\//, "");
111
// fast exit if another directory requested
112
if(url.indexOf(localPrefix) !== 0) return false;
113
} else return false;
0 commit comments