Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
refactor: remove unnecessary hotfile change
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Feb 5, 2022
1 parent 32d933a commit c537c9c
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ class LaravelMixValet {
if (!this.isHot()) {
return;
}

this.updateHotFile();
}

webpackConfig(config) {
Expand Down Expand Up @@ -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}/`
);
}

Expand Down

0 comments on commit c537c9c

Please sign in to comment.