Skip to content

Commit

Permalink
fix: improve check for custom webpack-dev-server package existance
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 authored and alexander-akait committed Jun 4, 2023
1 parent fa0553c commit 3f2a57a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/webpack-cli/src/webpack-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,10 @@ class WebpackCLI implements IWebpackCLI {
}

// Allow to use `./path/to/webpack-dev-server.js` outside `node_modules`
if (dependency === WEBPACK_DEV_SERVER_PACKAGE && fs.existsSync(WEBPACK_PACKAGE)) {
if (
dependency === WEBPACK_DEV_SERVER_PACKAGE &&
fs.existsSync(WEBPACK_DEV_SERVER_PACKAGE)
) {
skipInstallation = true;
}

Expand Down

0 comments on commit 3f2a57a

Please sign in to comment.