dvdzkwsk / react-redux-starter-kit

Get started with React, Redux, and React-Router.
MIT License
10.28k stars 2.2k forks source link

How do I trigger build when I hit refresh on my browser? #1078

Closed JasonShin closed 7 years ago

JasonShin commented 7 years ago

Hi, I have a project that uses react-redux-starter-kit and the project is quite huge. I am not a big fan of Webpack hot reloader. I feel productive when I actually hit F5 on my keyboard to see changes that I made. Webpack watch is annoying to me now because whenever I hit ctrl+s, it occasionally freezes my IDE or text editors. Since I am CTRL+S and F5 person (will always doing it in the future), is it possible to trigger webpack build whenever I hit F5 on my Chrome browser and see changes?

JasonShin commented 7 years ago

I am open for communication. I am happy to receive any recommendations as well. If you need more information about my issue, please let me know.

JasonShin commented 7 years ago

I was actually using npm start instead of npm run dev. It was causing the issue =(

dvdzkwsk commented 7 years ago

Sorry for not replying earlier, the best way to do this is probably by enabling the lazy option for webpack's dev server -- see http://webpack.github.io/docs/webpack-dev-server.html.

Hope that helps!