Skip to content

Commit

Permalink
fix(webpack-dev-server): Fix check for webpack-dev-server version
Browse files Browse the repository at this point in the history
  • Loading branch information
danez authored Jul 20, 2020
1 parent 03aa64d commit f262abf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/webpack-dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ npm install --save-dev webpack-dev-server
);
return;
}
if (WebpackDevServer.socketPath === undefined) {
// socketPath was introduced in version 3.2.0
if (WebpackDevServer.sockPath === undefined) {

This comment has been minimized.

Copy link
@mochja

mochja Jul 20, 2020

@danez the fix is not working, I believe there is no such property as it's defined in the constructor.

// sockPath was introduced in version 3.2.0
grunt.fail.fatal(
`webpack-dev-server is outdated. Please ensure you have at least version 3.2.0 installed.`,
);
Expand Down

0 comments on commit f262abf

Please sign in to comment.