8000 feat: add icons for directory viewer (#2441) · webpack/webpack-dev-server@e953d01 · GitHub
[go: up one dir, main page]

Skip to content

Commit e953d01

Browse files
authored
feat: add icons for directory viewer (#2441)
1 parent 2da4a1e commit e953d01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ class Server {
401401
return next();
402402
}
403403

404-
serveIndex(item)(req, res, next);
404+
serveIndex(item, { icons: true })(req, res, next);
405405
});
406406
});
407407
} else if (
@@ -414,7 +414,7 @@ class Server {
414414
return next();
415415
}
416416

417-
serveIndex(contentBase)(req, res, next);
417+
serveIndex(contentBase, { icons: true })(req, res, next);
418418
});
419419
}
420420
}

0 commit comments

Comments
 (0)
0