The latest commit to use browsersync is great…but: When I save out a .scss file, the styles are injected, but then the page hard reloads. The same thing was happening with livereload as well.
Is anyone else having this issue?
Just as reference in case something else wrong with my workflow:
Im using Bourbon and Neat pulled in by Bower (no overrides)
I have @import directives pointing to the bower_components directory for the main Bourbon and Neat files in main.scss (@import “…/…/bower_components/bourbon/app/assets/stylesheets/_bourbon”
Looking at the Browsersync docs on sass, it seems as though pipe(reload({stream:true})) needs to be ran last. I can’t say I entirely follow everything going on in the gulpfile yet, but it looks like var writeToManifest fires it earlier.
Not sure if that helps, but something I saw. Just moving it to last did not work though…
Additionally, Sass source maps are not working here either.
Additionally, would it be possible to eliminate WP Admin pages from being refreshed? This could help keep content from being accidentally lost in open tabs, and prevent having to close the ‘Are you sure you want to reload’ modal on pages with unsaved content.
If you open the admin pages with the normal URL, they won’t refresh. gulp watch fires the main URL in http://localhost:3000 so if you don’t log and use the admin pages, you should be fine.