Skip to content

Commit

Permalink
fix: HMR / --refresh flag (#1705)
Browse files Browse the repository at this point in the history
* fix: HMR

* docs: Adding changeset
  • Loading branch information
rschristian committed Jul 1, 2022
1 parent a60f8df commit f9ef9b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/young-bikes-compete.md
@@ -0,0 +1,5 @@
---
'preact-cli': patch
---

Fixes HMR / `--refresh` flag in watch mode
1 change: 1 addition & 0 deletions packages/cli/lib/lib/webpack/webpack-client-config.js
Expand Up @@ -332,6 +332,7 @@ function isDev(env) {

devServer: {
hot: true,
liveReload: !env.refresh,
compress: true,
devMiddleware: {
publicPath: '/',
Expand Down

0 comments on commit f9ef9b1

Please sign in to comment.