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
Specifying `local-ip` as `host` will try to resolve the `host` option as your local `IPv4` address if available, if `IPv4` is not available it will try to resolve your local `IPv6` address.
23
23
24
24
```console
25
-
npm run webpack-dev-server -- --open-target --port 5000 --host local-ip
Copy file name to clipboardExpand all lines: examples/general/proxy-simple/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# General: Simple Proxy
2
2
3
3
```console
4
-
npm run webpack-dev-server -- --open
4
+
npx webpack serve --open-target
5
5
```
6
6
7
7
In `webpack.config.js` there is a very simple configuration for a proxy. Note that this only works when proxying to a direct ip address. See the proxy-advanced example if you want to proxy to a domain.
0 commit comments