vrizo / uibook

Lightweight tool for React components visual testing with media queries
MIT License
228 stars 6 forks source link

Live reload for uibook page #4

Closed monochromer closed 4 years ago

monochromer commented 5 years ago

How to make live-reload on uibook page when changing files?

vrizo commented 5 years ago

Hi, @monochromer !

Thanks for your question. The feature is not implemented yet, I'll add it to the plan. I'm on vacation right now, so it's going to take some time.

vrizo commented 4 years ago

Hi, @monochromer !

Sorry for the long answer. The research took much more time than I expected. The new Uibook v.0.5.5 includes hot reload feature. It's necessary to enable this option in Uibook Controller:

uibook-controller.js

new UibookPlugin({
  …
  hot: true
})

uibook hot reload

Please let me know if doesn't work because I'm not sure in the code :)