Skip to content

Commit

Permalink
Enable hot reload by default
Browse files Browse the repository at this point in the history
  • Loading branch information
spadgett committed Sep 3, 2019
1 parent 2505a97 commit 6c6ba32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ You must run this command once, and every time the dependencies change. `node_mo
#### Interactive Development

The following build task will watch the source code for changes and compile automatically.
Hot Reloading is disabled by default. To enable it add `HOT_RELOAD='true'` to your environment variables.
If you would like to disable hot reloading, set the environment variable `HOT_RELOAD` to `false`.
```
yarn run dev
```
Expand Down
4 changes: 2 additions & 2 deletions frontend/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ const config: Configuration = {
devServer: {
writeToDisk: true,
progress: true,
hot: HOT_RELOAD === 'true',
inline: HOT_RELOAD === 'true',
hot: HOT_RELOAD !== 'false',
inline: HOT_RELOAD !== 'false',
},
resolve: {
extensions: ['.glsl', '.ts', '.tsx', '.js', '.jsx'],
Expand Down

0 comments on commit 6c6ba32

Please sign in to comment.