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 9378841 commit 3432cbcCopy full SHA for 3432cbc
middleware.js
@@ -21,7 +21,11 @@ module.exports = function (compiler, option) {
21
return function*(next) {
22
var ctx = this;
23
var req = this.req;
24
- var isHTML = /\.html?$/.test(this.url.split('?')[0]);
+ var url = this.url;
25
+ if (url === '/') {
26
+ return yield next;
27
+ }
28
+ var isHTML = /\.html?$/.test(url.split('?')[0]);
29
var runNext = yield middleware(doIt, req, {
30
end: function (content) {
31
// 添加 html fix
0 commit comments