We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5982806 commit 8de5d0aCopy full SHA for 8de5d0a
lib/Server.js
@@ -343,9 +343,10 @@ function Server(compiler, options) {
343
},
344
345
setup: () => {
346
- log('Using "setup" is deprecated and will be removed in the next major version. Please use the "before" and "after" hooks instead.');
347
- log('If "setup" was working fine for you until now, simply replace it with "before"');
348
- if (typeof options.setup === 'function') { options.setup(app, this); }
+ if (typeof options.setup === 'function') {
+ log('The `setup` option is deprecated and will be removed in v3. Please update your config to use `before`');
+ options.setup(app, this);
349
+ }
350
}
351
};
352
0 commit comments