Skip to content

Commit

Permalink
fix: Ensure correct version of webpack-dev-server is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Jul 20, 2020
1 parent ee287ce commit e40dbe9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tasks/webpack-dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@ npm install --save-dev webpack-dev-server
);
return;
}

if (typeof WebpackDevServer.addDevServerEntrypoints !== "function") {
if (WebpackDevServer.socketPath === undefined) {
// socketPath was introduced in version 3.2.0
grunt.fail.fatal(
"webpack-dev-server is outdated. Please ensure you have at least version 2.4.0 installed.",
`webpack-dev-server is outdated. Please ensure you have at least version 3.2.0 installed.`,
);
return;
}

let createDomain;
Expand Down

0 comments on commit e40dbe9

Please sign in to comment.