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: lib/options.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -486,12 +486,12 @@
486
486
},
487
487
"OnAfterSetupMiddleware": {
488
488
"instanceof": "Function",
489
-
"description": "Provides the ability to execute a custom function and apply custom middleware(s) after all other middlewares.",
489
+
"description": "Provides the ability to execute a custom function and apply custom middleware(s) after all other middlewares. Deprecated: please use the 'setupMiddlewares' option.",
"description": "Provides the ability to execute a custom function and apply custom middleware(s) prior to all other middlewares.",
494
+
"description": "Provides the ability to execute a custom function and apply custom middleware(s) prior to all other middlewares. Deprecated: please use the 'setupMiddlewares' option.",
Copy file name to clipboardExpand all lines: test/__snapshots__/validate-options.test.js.snap.webpack4
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -484,14 +484,14 @@ exports[`options validate should throw an error on the "magicHtml" option with '
484
484
exports[`options validate should throw an error on the "onAfterSetupMiddleware" option with 'false' value 1`] = `
485
485
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
486
486
- options.onAfterSetupMiddleware should be an instance of function.
487
-
-> Provides the ability to execute a custom function and apply custom middleware(s) after all other middlewares.
487
+
-> Provides the ability to execute a custom function and apply custom middleware(s) after all other middlewares. Deprecated: please use the 'setupMiddlewares' option.
488
488
-> Read more at https://webpack.js.org/configuration/dev-server/#devserveronaftersetupmiddleware"
489
489
`;
490
490
491
491
exports[`options validate should throw an error on the "onBeforeSetupMiddleware" option with 'false' value 1`] = `
492
492
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
493
493
- options.onBeforeSetupMiddleware should be an instance of function.
494
-
-> Provides the ability to execute a custom function and apply custom middleware(s) prior to all other middlewares.
494
+
-> Provides the ability to execute a custom function and apply custom middleware(s) prior to all other middlewares. Deprecated: please use the 'setupMiddlewares' option.
495
495
-> Read more at https://webpack.js.org/configuration/dev-server/#devserveronbeforesetupmiddleware"
Copy file name to clipboardExpand all lines: test/__snapshots__/validate-options.test.js.snap.webpack5
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -484,14 +484,14 @@ exports[`options validate should throw an error on the "magicHtml" option with '
484
484
exports[`options validate should throw an error on the "onAfterSetupMiddleware" option with 'false' value 1`] = `
485
485
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
486
486
- options.onAfterSetupMiddleware should be an instance of function.
487
-
-> Provides the ability to execute a custom function and apply custom middleware(s) after all other middlewares.
487
+
-> Provides the ability to execute a custom function and apply custom middleware(s) after all other middlewares. Deprecated: please use the 'setupMiddlewares' option.
488
488
-> Read more at https://webpack.js.org/configuration/dev-server/#devserveronaftersetupmiddleware"
489
489
`;
490
490
491
491
exports[`options validate should throw an error on the "onBeforeSetupMiddleware" option with 'false' value 1`] = `
492
492
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
493
493
- options.onBeforeSetupMiddleware should be an instance of function.
494
-
-> Provides the ability to execute a custom function and apply custom middleware(s) prior to all other middlewares.
494
+
-> Provides the ability to execute a custom function and apply custom middleware(s) prior to all other middlewares. Deprecated: please use the 'setupMiddlewares' option.
495
495
-> Read more at https://webpack.js.org/configuration/dev-server/#devserveronbeforesetupmiddleware"
0 commit comments