Closed TCattd closed 4 years ago
Hi @TCattd ,
The BrowserSync Webpack plugin only ever injected CSS when no non-css files were output by webpack during a change which was never the case in the theme.
I've replaced BrowserSync with Webpack Dev Server in master
which resolves the issue and includes some other goodies (e.g. an error overlay when compilation fails).
Version
Please add the exact versions used for each of the following:
Expected behavior
By the info shown at /resources/build/browsersync.js (injectCss = true) i think the theme should hot-reload and inject the css without a full page reload.
Actual behavior
Changing some SCSS will trigger a full page reload.
Steps to reproduce (in case of a bug)
Comments
Video: https://photos.app.goo.gl/mszfYYFiffmzbsmM8 yarn dev at 40 seconds mark.