You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess this is not a bug, because this is intended behavior. The contentBase option defaults to the current directory and the webpack-dev-server acts as static web server. This is important to serve the HTML files and other files from this directory.
Ah ok, my main use of webpack is via https://github.com/mozilla-neutrino/neutrino-dev , which doesn't leave any assets outside of the main output directory (and so makes contentbase default to it), but if that's not a typical usage pattern then I guess this is unavoidable.
Broken out of #887.
It's possible to access files that would not end up in the webpack output path (eg
dist/
) for the full webpack build.STR:
./node_modules/.bin/webpack-dev-server
dist/
):curl -i localhost:8080/package.json
curl -i localhost:8080/.git/config
Expected:
HTTP 404s or similar.
Actual:
HTTP 200s for cases where the file exists, along with the file contents.
The text was updated successfully, but these errors were encountered: