Skip to content

Commit e06f634

Browse files
committed
fixup!
1 parent cd41e05 commit e06f634

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

lib/Server.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -568,14 +568,14 @@ class Server {
568568
}
569569

570570
if (!dir) {
571-
return path.resolve(cwd, ".cache/webpack-dev-server");
571+
return path.resolve(cwd, `.cache/${pluginName}`);
572572
} else if (process.versions.pnp === "1") {
573-
return path.resolve(dir, ".pnp/.cache/webpack-dev-server");
573+
return path.resolve(dir, `.pnp/.cache/${pluginName}`);
574574
} else if (process.versions.pnp === "3") {
575-
return path.resolve(dir, ".yarn/.cache/webpack-dev-server");
575+
return path.resolve(dir, `.yarn/.cache/${pluginName}`);
576576
}
577577

578-
return path.resolve(dir, "node_modules/.cache/webpack-dev-server");
578+
return path.resolve(dir, `node_modules/.cache/${pluginName}`);
579579
}
580580

581581
/**
@@ -1260,7 +1260,7 @@ class Server {
12601260
if (typeof options.ipc === "boolean") {
12611261
const isWindows = process.platform === "win32";
12621262
const pipePrefix = isWindows ? "\\\\.\\pipe\\" : os.tmpdir();
1263-
const pipeName = "webpack-dev-server.sock";
1263+
const pipeName = `${pluginName}.sock`;
12641264

12651265
options.ipc = path.join(pipePrefix, pipeName);
12661266
}
@@ -1824,14 +1824,14 @@ class Server {
18241824
setupHooks() {
18251825
const compiler = /** @type {Compiler | MultiCompiler} */ (this.compiler);
18261826

1827-
compiler.hooks.invalid.tap("webpack-dev-server", () => {
1827+
compiler.hooks.invalid.tap(pluginName, () => {
18281828
if (this.webSocketServer) {
18291829
this.sendMessage(this.webSocketServer.clients, "invalid");
18301830
}
18311831
});
18321832

18331833
compiler.hooks.done.tap(
1834-
"webpack-dev-server",
1834+
pluginName,
18351835
/**
18361836
* @param {Stats | MultiStats} stats stats
18371837
*/

0 commit comments

Comments
 (0)