From 6c6ba3228c06f8b733d5e70875bb40365caff86b Mon Sep 17 00:00:00 2001 From: Samuel Padgett Date: Tue, 3 Sep 2019 11:28:25 -0400 Subject: [PATCH] Enable hot reload by default --- README.md | 2 +- frontend/webpack.config.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 968a583d543..d8ddc5e64b4 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/frontend/webpack.config.ts b/frontend/webpack.config.ts index 5a37aba7968..b88b2817ea2 100644 --- a/frontend/webpack.config.ts +++ b/frontend/webpack.config.ts @@ -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'],