Skip to content
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

docs: add documentation for invalidate endpoint #3692

Merged
merged 15 commits into from
May 18, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/configuration/dev-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ W> Be aware that when [exporting multiple configurations](/configuration/configu

T> If you're having trouble, navigating to the `/webpack-dev-server` route will show where files are served. For example, `http://localhost:9000/webpack-dev-server`.

T> If you want to recompile the bundle. e.g. after a change to the configuration. Navigating to the `/invalidate` route will instruct [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware#invalidate) instance to recompile the bundle for you. For example, `http://localhost:9000/invalidate`.
T> If you want to manually recompile the bundle, navigating to the `/invalidate` route will [invalidate](https://webpack.js.org/api/node/#invalidate-watching) the current compilation of the bundle and recompile it for you via [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware#invalidate). For example, `http://localhost:9000/invalidate`.
EslamHiko marked this conversation as resolved.
Show resolved Hide resolved

T> HTML template is required to serve the bundle, usually it is an `index.html` file. Make sure that script references are added into HTML, webpack-dev-server doesn't inject them automatically.

Expand Down