webpack-dev-server 2.4.1 → 2.4.2

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.
@@ -11,11 +11,13 @@ module.exports = function addDevServerEntrypoints(webpackOptions, devServerOptio
11
11
  else if(devServerOptions.hot)
12
12
  devClient.push("webpack/hot/dev-server");
13
13
 
14
- [].concat(webpackOptions).forEach(function(wpOpt) {
14
+ [].concat(webpackOptions).forEach((wpOpt) => {
15
15
  if(typeof wpOpt.entry === "object" && !Array.isArray(wpOpt.entry)) {
16
- Object.keys(wpOpt.entry).forEach(function(key) {
16
+ Object.keys(wpOpt.entry).forEach((key) => {
17
17
  wpOpt.entry[key] = devClient.concat(wpOpt.entry[key]);
18
18
  });
19
+ } else if(typeof wpOpt.entry === "function") {
20
+ wpOpt.entry = wpOpt.entry(devClient);
19
21
  } else {
20
22
  wpOpt.entry = devClient.concat(wpOpt.entry);
21
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpack-dev-server",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "author": "Tobias Koppers @sokra",
5
5
  "description": "Serves a webpack app. Updates the browser on changes.",
6
6
  "peerDependencies": {
@@ -13,7 +13,7 @@
13
13
  "connect-history-api-fallback": "^1.3.0",
14
14
  "express": "^4.13.3",
15
15
  "html-entities": "^1.2.0",
16
- "http-proxy-middleware": "~0.17.1",
16
+ "http-proxy-middleware": "~0.17.4",
17
17
  "opn": "4.0.2",
18
18
  "portfinder": "^1.0.9",
19
19
  "serve-index": "^1.7.2",
@@ -26,6 +26,7 @@
26
26
  "yargs": "^6.0.0"
27
27
  },
28
28
  "devDependencies": {
29
+ "codecov.io": "^0.1.6",
29
30
  "css-loader": "~0.26.1",
30
31
  "eslint": "^3.4.0",
31
32
  "file-loader": "~0.10.0",
@@ -42,7 +43,8 @@
42
43
  "style-loader": "~0.13.0",
43
44
  "supertest": "^2.0.1",
44
45
  "url-loader": "~0.5.6",
45
- "webpack": "^2.2.0"
46
+ "webpack": "^2.2.0",
47
+ "ws": "^1.1.1"
46
48
  },
47
49
  "license": "MIT",
48
50
  "repository": {