Newly added files not detected by browser-sync watch task
See original GitHub issueA few times I thought browser-sync was broken or not configured the correct way, as newly added files will not be recognized in the watch folders.
For example I add _global.scss
as file, import it in /scss/style.scss
:
- when I click save inside
style.scss
, the import runs and everything seems to be fine - when I click save inside
_global.scss
nothing happens
After stopping and running the gulp
task again, saving the new _global.scss
file although does cause a hot reload.
Is there a way to detect newly added files inside gulp and register them? I did not found anything about this in the web to add some input on my own.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Gulp Browsersync task not reloading on file changes with new ...
So my question is, how do I change my gulp tasks to watch for changes in the new file structure I am using,...
Read more >Browsersync options
Browsersync makes your browser testing workflow faster by synchronising URLs, interactions and code changes across multiple devices.
Read more >BrowserSync not refreshing - Laracasts
For some reason I can't get BrowserSync to refresh when I update my files. ... Task; elixir.extend("stylistPublish", function() { new task("stylistPublish", ...
Read more >Browsersync + Sass + Gulp in 15 minutes - YouTube
My course: Responsive Design for Beginners! https://coder-coder.com/responsive/ Become a full-stack web dev with Zero to Mastery: ...
Read more >How do I wire up Browsersync and Gulp in my Lando app?
How to setup Lando with Browsersync & Gulp so that edits to scss files are ... If you had a gulp task called...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Currently it behaves as expected in my test cases, so I would say yes, it works great.
But it’s great nevertheless