hew / react-static-boilerplate-ES6

🍽 React Static Site Boilerplate with ES6
57 stars 9 forks source link

watch files #2

Open westn opened 9 years ago

westn commented 9 years ago

It would be nice to have a watcher on the files, so it automatically recompiles the code when you save a file. I've been trying to make it work without much success today, but perhaps there is some solution. Since it should work with webpack.

hew commented 9 years ago

Thanks! I appreciate the effort.

I would suggest looking into Gatsby, which could maybe be a more coherent solution to React static site generation than what me and Brent have managed. It definitely has hotloading, which is nice.

hew commented 8 years ago

Actually I was wrong, as I was playing around with my site today. The Webpack setup will recompile on changes; it just doesn't have hot-loading (where you don't have to reload the browser). Can you confirm that there is recompilation happening? Because there should be.