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: README.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ fast in-memory access to the webpack assets.
27
27
-[With the CLI](#with-the-cli)
28
28
-[With NPM Scripts](#with-npm-scripts)
29
29
-[With the API](#with-the-api)
30
+
-[With TypeScript](#with-typescript)
30
31
-[The Result](#the-result)
31
32
-[Browser Support](#browser-support)
32
33
-[Support](#support)
@@ -249,6 +250,30 @@ While it's recommended to run webpack-dev-server via the CLI, you may also choos
249
250
250
251
See the related [API documentation for `webpack-dev-server`](https://webpack.js.org/api/webpack-dev-server/).
251
252
253
+
### With TypeScript
254
+
255
+
If you use TypeScript in the webpack config, you'll need to properly type `devServer` property in order to avoid TS errors (e.g. `'devServer' does not exist in type 'Configuration'`). For that use either:
0 commit comments