webpack-dev-server 3.10.2 → 3.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/lib/Server.js +6 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [3.10.3](https://github.com/webpack/webpack-dev-server/compare/v3.10.2...v3.10.3) (2020-02-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* forward error requests to the proxy ([#2425](https://github.com/webpack/webpack-dev-server/issues/2425)) ([e291cd4](https://github.com/webpack/webpack-dev-server/commit/e291cd4922f66c5c69dfd1fd3839812cfa502de5))
|
|
11
|
+
|
|
5
12
|
### [3.10.2](https://github.com/webpack/webpack-dev-server/compare/v3.10.0...v3.10.2) (2020-01-31)
|
|
6
13
|
|
|
7
14
|
|
package/lib/Server.js
CHANGED
|
@@ -288,7 +288,7 @@ class Server {
|
|
|
288
288
|
this.websocketProxies.push(proxyMiddleware);
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
|
|
291
|
+
const handle = (req, res, next) => {
|
|
292
292
|
if (typeof proxyConfigOrCallback === 'function') {
|
|
293
293
|
const newProxyConfig = proxyConfigOrCallback();
|
|
294
294
|
|
|
@@ -319,7 +319,11 @@ class Server {
|
|
|
319
319
|
} else {
|
|
320
320
|
next();
|
|
321
321
|
}
|
|
322
|
-
}
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
this.app.use(handle);
|
|
325
|
+
// Also forward error requests to the proxy so it can handle them.
|
|
326
|
+
this.app.use((error, req, res, next) => handle(req, res, next));
|
|
323
327
|
});
|
|
324
328
|
}
|
|
325
329
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webpack-dev-server",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.3",
|
|
4
4
|
"description": "Serves a webpack app. Updates the browser on changes.",
|
|
5
5
|
"bin": "bin/webpack-dev-server.js",
|
|
6
6
|
"main": "lib/Server.js",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"eslint": "^6.8.0",
|
|
87
87
|
"eslint-config-prettier": "^6.10.0",
|
|
88
88
|
"eslint-config-webpack": "^1.2.5",
|
|
89
|
-
"eslint-plugin-import": "^2.20.
|
|
89
|
+
"eslint-plugin-import": "^2.20.1",
|
|
90
90
|
"execa": "^1.0.0",
|
|
91
91
|
"file-loader": "^5.0.2",
|
|
92
92
|
"html-loader": "^0.5.5",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"jquery": "^3.4.1",
|
|
98
98
|
"less": "^3.10.3",
|
|
99
99
|
"less-loader": "^5.0.0",
|
|
100
|
-
"lint-staged": "^10.0.
|
|
100
|
+
"lint-staged": "^10.0.7",
|
|
101
101
|
"marked": "^0.8.0",
|
|
102
102
|
"memfs": "^3.0.4",
|
|
103
103
|
"npm-run-all": "^4.1.5",
|