Hi there,
so I’m trying to use React.js
along with Sage 9 alpha 4
and am stuck with yarn run start
, Hot reloading or rebuilding
my problem is that I can not get React components to be hot replaced
and as I’d be happy to live with rebuilding on save
so I tried to watch
.jsx files
but as far as I understand watch does not rebuild - only reload
so I have 2 questions:
-
Do I need React Hot Loader to enable HMR for React components (I’d say yes - but then has someone tweaked the config to do it and can help? otherwise I’ll get at it)
-
How can I simply trigger a rebuild on save (which would help get going for the time being)
I’ve been trying to sort things out bt myself since yesterday but well … i’m stuck (or tired)
would love some help from more webpack savvy users
thanks in advance