question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Newly added files not detected by browser-sync watch task

See original GitHub issue

A 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:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
marianrickcommented, Jan 16, 2018

Currently it behaves as expected in my test cases, so I would say yes, it works great.

Am 15.01.2018 um 21:39 schrieb Jeremy Englert notifications@github.com:

@marianrick - can you confirm the 2.0 branch works as expected?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

1reaction
marianrickcommented, Jan 15, 2018

But it’s great nevertheless

Am 15.01.2018 um 08:55 schrieb Jeremy Englert notifications@github.com:

This no longer appears to be an issue in 2.0, but I’m not 100% sure why.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found