Skip to content

Commit 67a6af2

Browse files
authored
docs: update api examples (#3788)
1 parent 39cef1b commit 67a6af2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/api/middleware/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ const compiler = Webpack(webpackConfig);
88
const devServerOptions = webpackConfig.devServer;
99
const server = new WebpackDevServer(devServerOptions, compiler);
1010

11-
server.listen(8080, "127.0.0.1", () => {
11+
server.startCallback(() => {
1212
console.log("Starting server on http://localhost:8080");
1313
});

examples/api/simple/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ const compiler = Webpack(webpackConfig);
88
const devServerOptions = { ...webpackConfig.devServer, open: true };
99
const server = new WebpackDevServer(devServerOptions, compiler);
1010

11-
server.listen(8080, "127.0.0.1", () => {
11+
server.startCallback(() => {
1212
console.log("Starting server on http://localhost:8080");
1313
});

0 commit comments

Comments
 (0)