webpack-dev-server 4.1.0 → 4.1.1
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/README.md +2 -1
- package/bin/cli-flags.js +6 -2
- package/client/modules/sockjs-client/index.js +1 -1
- package/client/modules/strip-ansi/index.js +2 -2
- package/client/overlay.js +1 -1
- package/lib/Server.js +2 -2
- package/lib/options.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -132,7 +132,8 @@ Options:
|
|
|
132
132
|
--ipc [value] Listen to a unix socket.
|
|
133
133
|
--live-reload Enables reload/refresh the page(s) when file changes are detected (enabled by default).
|
|
134
134
|
--no-live-reload Negative 'live-reload' option.
|
|
135
|
-
--magic-html
|
|
135
|
+
--magic-html Tells dev-server whether to enable magic HTML routes (routes corresponding to your webpack output, for
|
|
136
|
+
example '/main' for 'main.js').
|
|
136
137
|
--no-magic-html Negative 'magic-html' option.
|
|
137
138
|
--open [value...] Allows to configure dev server to open the browser(s) and page(s) after server had been started (set it to
|
|
138
139
|
true to open your default browser).
|
package/bin/cli-flags.js
CHANGED
|
@@ -539,11 +539,15 @@ module.exports = {
|
|
|
539
539
|
{
|
|
540
540
|
type: "boolean",
|
|
541
541
|
multiple: false,
|
|
542
|
-
description:
|
|
542
|
+
description:
|
|
543
|
+
"Tells dev-server whether to enable magic HTML routes (routes corresponding to your webpack output, for example '/main' for 'main.js').",
|
|
543
544
|
path: "magicHtml",
|
|
544
545
|
},
|
|
545
546
|
],
|
|
546
|
-
description:
|
|
547
|
+
description:
|
|
548
|
+
"Tells dev-server whether to enable magic HTML routes (routes corresponding to your webpack output, for example '/main' for 'main.js').",
|
|
549
|
+
negatedDescription:
|
|
550
|
+
"Disables magic HTML routes (routes corresponding to your webpack output, for example '/main' for 'main.js').",
|
|
547
551
|
simpleType: "boolean",
|
|
548
552
|
multiple: false,
|
|
549
553
|
},
|
|
@@ -19,7 +19,7 @@ function stripAnsi(string) {
|
|
|
19
19
|
throw new TypeError("Expected a `string`, got `".concat(typeof string, "`"));
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
return string.replace((0,ansi_regex__WEBPACK_IMPORTED_MODULE_0__
|
|
22
|
+
return string.replace((0,ansi_regex__WEBPACK_IMPORTED_MODULE_0__["default"])(), '');
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/***/ }),
|
|
@@ -110,7 +110,7 @@ var __webpack_exports__ = {};
|
|
|
110
110
|
__webpack_require__.r(__webpack_exports__);
|
|
111
111
|
/* harmony import */ var strip_ansi__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! strip-ansi */ "./node_modules/strip-ansi/index.js");
|
|
112
112
|
|
|
113
|
-
/* harmony default export */ __webpack_exports__["default"] = (strip_ansi__WEBPACK_IMPORTED_MODULE_0__
|
|
113
|
+
/* harmony default export */ __webpack_exports__["default"] = (strip_ansi__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
114
114
|
}();
|
|
115
115
|
var __webpack_export_target__ = exports;
|
|
116
116
|
for(var i in __webpack_exports__) __webpack_export_target__[i] = __webpack_exports__[i];
|
package/client/overlay.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// The error overlay is inspired (and mostly copied) from Create React App (https://github.com/facebookincubator/create-react-app)
|
|
2
2
|
// They, in turn, got inspired by webpack-hot-middleware (https://github.com/glenjamin/webpack-hot-middleware).
|
|
3
|
-
import ansiHTML from "ansi-html";
|
|
3
|
+
import ansiHTML from "ansi-html-community";
|
|
4
4
|
import { encode } from "html-entities";
|
|
5
5
|
var colors = {
|
|
6
6
|
reset: ["transparent", "transparent"],
|
package/lib/Server.js
CHANGED
|
@@ -424,8 +424,8 @@ class Server {
|
|
|
424
424
|
}
|
|
425
425
|
// CLI pass options as array, we should normalize them
|
|
426
426
|
else if (
|
|
427
|
-
Array.isArray(
|
|
428
|
-
|
|
427
|
+
Array.isArray(options.allowedHosts) &&
|
|
428
|
+
options.allowedHosts.includes("all")
|
|
429
429
|
) {
|
|
430
430
|
options.allowedHosts = "all";
|
|
431
431
|
}
|
package/lib/options.json
CHANGED
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
},
|
|
334
334
|
"MagicHTML": {
|
|
335
335
|
"type": "boolean",
|
|
336
|
-
"description": "
|
|
336
|
+
"description": "Tells dev-server whether to enable magic HTML routes (routes corresponding to your webpack output, for example '/main' for 'main.js').",
|
|
337
337
|
"link": "https://webpack.js.org/configuration/dev-server/#devservermagichtml"
|
|
338
338
|
},
|
|
339
339
|
"OnAfterSetupMiddleware": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webpack-dev-server",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
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",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"release": "standard-version"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"ansi-html": "^0.0.
|
|
35
|
+
"ansi-html-community": "^0.0.8",
|
|
36
36
|
"bonjour": "^3.5.0",
|
|
37
37
|
"chokidar": "^3.5.1",
|
|
38
38
|
"colorette": "^1.2.2",
|