"File changed" HTML notification no longer appears after upgrading browser-sync version
See original GitHub issueIssue 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:
- Created 6 years ago
- Comments:6 (1 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 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 >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 FreeTop 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
Top GitHub Comments
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 😦
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.