Skip to content

Commit fcd7b7e

Browse files
committed
Merge pull request #385 from dickeylth/master
add `staticOptions` for expose express.static options pass in
2 parents 8442a83 + e5f698d commit fcd7b7e

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)