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
Copy file name to clipboardExpand all lines: src/content/configuration/dev-server.md
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,18 @@ W> Be aware that when [exporting multiple configurations](/configuration/configu
46
46
47
47
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`.
48
48
49
+
## `devServer.after`
50
+
51
+
`function`
52
+
53
+
Provides the ability to execute custom middleware after all other middleware
54
+
internally within the server.
55
+
56
+
```js
57
+
after(app){
58
+
// do fancy stuff
59
+
}
60
+
```
49
61
50
62
## `devServer.allowedHosts`
51
63
@@ -80,6 +92,21 @@ To use this option with the CLI pass the `--allowed-hosts` option a comma-delimi
0 commit comments