andyrj / riot-redux-starter-kit

*Deprecated Experiment* Yet Another Todo, using RiotJS and Redux... I threw in a counter for good measure!
MIT License
14 stars 0 forks source link

hot reloader #1

Open weepy opened 8 years ago

weepy commented 8 years ago

nice clean project!

i was just wondering if hot reloader could work with riot ?

andyrj commented 8 years ago

Initially I was trying to use webpack-dev-server --inline --hot, but I ran into an issue with the loaders and something about the output of the riot compiler not being cacheable by webpack.

That's why just for simplicity and to get this at least up I swapped in live-reload.

I think something may have to be changed either in the riotjs-loader or in riot compiler itself to support that, but I am really not sure as I haven't taken a look.

I know the react-redux-starter-kit has to have a special package to help react handle the hot loading gracefully https://github.com/gaearon/react-transform-hmr.

If someone wants to take a look or make a pr I would happily accept hot module reloading!