From c537c9c2cb3fbec326409e6ec898ecd7d635c954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ionit=CC=A6a=CC=86?= Date: Sat, 5 Feb 2022 17:06:20 +0000 Subject: [PATCH] refactor: remove unnecessary hotfile change --- index.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/index.js b/index.js index 512a18d..7d83da8 100644 --- a/index.js +++ b/index.js @@ -40,8 +40,6 @@ class LaravelMixValet { if (!this.isHot()) { return; } - - this.updateHotFile(); } webpackConfig(config) { @@ -74,20 +72,10 @@ class LaravelMixValet { return fs.readFileSync(cert); } - updateHotFile() { - const hotFile = path.resolve('public', 'hot'); - - if (!fs.existsSync(hotFile)) { - return; - } - - fs.writeFileSync(hotFile, this.hotUrl()); - } - hotUrl() { return ( (this.config.https ? 'https' : 'http') + - `://${this.config.host}:${this.config.port}` + `://${this.config.host}:${this.config.port}/` ); }