Skip to content

Commit 1c04206

Browse files
弘树SpaceK33z
authored andcommitted
add staticOptions for expose express.static options pass in
1 parent 22475e9 commit 1c04206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ function Server(compiler, options) {
234234
});
235235
} else {
236236
// route content request
237-
app.get("*", express.static(contentBase), serveIndex(contentBase));
237+
app.get("*", express.static(contentBase, options.staticOptions), serveIndex(contentBase));
238238
}
239239
}
240240
}.bind(this),

0 commit comments

Comments
 (0)