tonik / theme

Tonik is a WordPress Starter Theme which aims to modernize, organize and enhance some aspects of WordPress theme development.
http://labs.tonik.pl/theme/
MIT License
1.33k stars 140 forks source link

BrowserSync (or Webpack) refreshing the whole page instead of injecting changes #109

Open psaikali opened 2 years ago

psaikali commented 2 years ago

Hi,

First, thank you for making this awesome theme with a proper documentation, I love working with it!

I'm having trouble when working on the SCSS of the theme with npm run watch running. The localhost:3000 web page refreshes everytime I save a SCSS file, instead of CSS changes being injected in the currently open page.

Is there a way to use "hot reloading"/injection instead of full page refresh?

I'm using the default config BTW.

Thanks for the help!