Skip to content

Expose a way to pass params for express.static? #327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hirokith opened this issue Nov 27, 2015 · 1 comment
Closed

Expose a way to pass params for express.static? #327

hirokith opened this issue Nov 27, 2015 · 1 comment

Comments

@hirokith
Copy link
Contributor

In https://github.com/webpack/webpack-dev-server/blob/master/lib/Server.js#L203,

// route content request
app.get("*", express.static(contentBase), serveIndex(contentBase));

Now I want to pass param {index: false} to express.static so that it looks like express.static(contentBase, {index: false}) to disable directory indexing, because it makes me feel inconvenient to access other html files under the directory.

Thank you!

@SpaceK33z
Copy link
Member

Fixed with #385, which will be part of the next 1.x release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants