From c1b890de5c99d487d039f8df1b5de8dfed9c689e Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Peters Date: Mon, 10 Sep 2018 14:31:35 +0200 Subject: [PATCH] make chokidar use polling to detect file changes; see: https://github.com/paulmillr/chokidar/issues/237 --- TODO | 1 - src/main/react/package.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/TODO b/TODO index f4b7547..cc03118 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,3 @@ * webfonts via package.json? * dev reactjs dependency in the dev env -* hot reload works only once * do I need babel for full JSX support? diff --git a/src/main/react/package.json b/src/main/react/package.json index 0accca0..bc7d0b3 100644 --- a/src/main/react/package.json +++ b/src/main/react/package.json @@ -1,7 +1,7 @@ { "scripts": { "bundle": "parcel build index.js --no-cache --out-dir ../../../target/classes/static/ --out-file bundle --public-url /", - "watch": "parcel watch index.js --out-dir ../../../target/classes/static/ --out-file bundle --public-url /" + "watch": "CHOKIDAR_USEPOLLING=true parcel watch index.js --out-dir ../../../target/classes/static/ --out-file bundle --public-url /" }, "license": "GPL-3.0+", "dependencies": {