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.
2 parents 75367b8 + b8ca9f5 commit 0afbe7eCopy full SHA for 0afbe7e
middleware.js
@@ -2,7 +2,6 @@
2
MIT License http://www.opensource.org/licenses/mit-license.php
3
Author Tobias Koppers @sokra
4
*/
5
-var path = require("path");
6
var MemoryFileSystem = require("memory-fs");
7
var mime = require("mime");
8
@@ -155,7 +154,7 @@ module.exports = function(compiler, options) {
155
154
var stat = fs.statSync(filename);
156
if(!stat.isFile()) {
157
if (stat.isDirectory()) {
158
- filename = path.join(filename, "index.html");
+ filename = pathJoin(filename, "index.html");
159
stat = fs.statSync(filename);
160
if(!stat.isFile()) throw "next";
161
} else {
0 commit comments