Skip to content

Commit 5df599e

Browse files
authored
config/webpackDevServer.config.js: Fix deprecation warning
`setup` was deprecated in webpack/webpack-dev-server#1108
1 parent 0ea5063 commit 5df599e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/webpackDevServer.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ module.exports = function(proxy, allowedHost) {
7878
},
7979
public: allowedHost,
8080
proxy,
81-
setup(app) {
81+
before(app) {
8282
// This lets us open files from the runtime error overlay.
8383
app.use(errorOverlayMiddleware());
8484
// This service worker file is effectively a 'no-op' that will reset any

0 commit comments

Comments
 (0)