jaredLunde / webpack2-react-sass-env-boilerplate

A boilerplate for creating Javascript packages with Webpack 3*, babel-preset-env, React + HMR, and SASS.
MIT License
4 stars 2 forks source link

Problem with Hot Reloading #4

Open PrudhviRaj5 opened 7 years ago

PrudhviRaj5 commented 7 years ago

First of all, Thank you!! I have been looking for a boilerplate which includes React, SASS and webpack2 with most updated version and config. I had trouble setting up on my own, mainly on SASS compilers and also hot reloading. I had cloned your repository and did

npm install 
node server.js

The modules compiled successfully, but when I make some changes to App.js and save it, these changes are not being reflected on the browser even after I reload the browser. could you please help me with this problem?

jaredLunde commented 7 years ago

Odd, I just followed your steps and I couldn't replicate the issue. Mind telling me which browser/OS you're using? Also, check your javascript console. Do you get any errors?

PrudhviRaj5 commented 7 years ago

@jaredlunde compilation of the bundles had happened only once in the begining when I start the server. I have added extra <span>test</span> tag to App.js and saved it. Ideally bundle should recompile again, but that's not happening. I also don't see any errors or for that matter any updates in the terminal console dashboard and browser's console.