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: migration-v4.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -545,3 +545,21 @@ There are a lot of other bug fixes.
545
545
```
546
546
547
547
IE8 is not supported, sorry
548
+
549
+
- Change in **Node.js API**:
550
+
551
+
- If you're using dev-server through the Node.js API, the options in devServer will be ignored. Pass the options as a first parameter instead:
552
+
553
+
v3:
554
+
555
+
```js
556
+
newWebpackDevServer(compiler, {...})
557
+
```
558
+
559
+
v4:
560
+
561
+
```js
562
+
newWebpackDevServer({...}, compiler)
563
+
```
564
+
565
+
-[See here](https://github.com/webpack/webpack-dev-server/tree/master/examples/api/simple) for an example of how to use `webpack-dev-server` through the Node.js API.
0 commit comments