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.

"File changed" HTML notification no longer appears after upgrading browser-sync version

See original GitHub issue

Issue details

When changing a CSS file listed into the files array, and having notify: true (default value), the notification about “File changed” does not appear.

I don’t remember its exact text, however I’m pretty sure I got it in some earlier versions of browser-sync.

Steps to reproduce/test case

Just include a CSS file into the files array of the object given to browserSync(), open the web and later edit and save such a CSS file.

Please specify which version of Browsersync, node and npm you’re running

  • Browsersync: 2.22.0
  • Node: 8.1.2
  • Npm: 5.6.0

Affected platforms

  • linux
  • windows
  • OS X
  • freebsd
  • solaris
  • other (please specify which)

Browsersync use-case

  • Gulp

for all other use-cases, (gulp, grunt etc), please show us exactly how you’re using Browsersync

const browserSync = require('browser-sync');

gulp.task('livebrowser', (done) =>
{
	browserSync(
		{
			open      : 'external',
			host      : 'mylocaldomain.org',
			server    :
			{
				baseDir : 'out'
			},
			https     : true,
			notify    : true,
			ghostMode : false,
			files     : path.join('out', '**', '*')
		});

	done();
});

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
jaclyntancommented, Nov 7, 2018

I have just realised this was an intended change - several releases ago. 😐

Please reconsider making the notification overlay an option - it was so handy for me to know at a glance that the page has updated. I styled my notification so it was just a tiny box in the bottom corner - it doesn’t have to be a huge ass modal. Having instant feedback without having to look specifically at the user messages tab in my console helps me code so much faster 😦

3reactions
ibccommented, Jul 25, 2018

Completely agreed. Sometimes it takes so long for the CSS changes to become effective (it depends on how busy the CPU is, whether SASS or similar is being compiling the CSS, etc.

Having this as an optional setting would be great.

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 options. These are all the options that you can configure when using Browsersync. Create a single object and pass it as the...
Read more >
Browser Sync not refreshing after injecting css - Roots Discourse
I tried adding simple css but still no change once browser sync notifies that the new style has been injected. I have tried...
Read more >
BrowserSync [#2742965] | Drupal.org
Update in browser when template was modified. ... Then I make a change in any sass file but in the browser not occurs...
Read more >
BrowserSync not refreshing - Laracasts
For some reason I can't get BrowserSync to refresh when I update my files. Upon running gulp watch the ... However it doesn't...
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