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.

cant reload even just watch the css style!

See original GitHub issue
         //I just want an easy task,once the css change,reload the browser.
        var gulp = require('gulp');
        var browserSync = require('browser-sync');
         gulp.task('watch',['browserSync'], function() {
         gulp.watch('src/css/*.css', browserSycn.reload);
         gulp.watch('src/*.html', browserSync.reload);
     });

       gulp.task('browserSync', function() {
                 browserSync({
                      server: {
                         baseDir: 'src'
                        }
               })
        });

but once I click the browser, it works , I have google this a lot , I think this is the last place who can handle this issuse, So what’s next?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
HectorManriquezcommented, Jul 13, 2016

This is an older post but for future reference if anyone is having any issues.

The following should work if you are working on WebStorm:

Go to Settings >System Settings > Synchronization > Uncheck Use “safe write”

Now every time you make a change you should see the page reload with the changes.

0reactions
radcapitalistcommented, Feb 9, 2018

@HectorManriquez @ivanberry At least for me, unchecking “safe write” did not help. However, you can just do Ctrl+S (Save All) in WebStorm just like in other editors, and at that point, browser-sync does catch it and update the browser.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS file not refreshing in browser - Stack Overflow
Try opening the style sheet itself (by entering its address into the browser's address bar) and pressing F5 . If it still doesn't...
Read more >
Force Reload Even the Most Stubbornly Cached CSS Files
Learn a simple trick how to force reload all cached CSS files on a page. Development or production environment - it works everywhere...
Read more >
Force reload of CSS with a new number after the ? | OutSystems
1. Refresh the dependences in the Consumer module. This sill make it use the new number. The browser will then download the new...
Read more >
CSS not applied on first load - MSDN - Microsoft
Try loading the StyleSheet into your browser (http://yourServerName/yourAppName/StyleSheet.css). Does it work? Do you receive the correct StyleSheet.css? <hints ...
Read more >
Styles within pages are cached and don't reload. How not to ...
# Click the settings button (three dots near the top right). # Scroll down to the Advanced settings on the bottom right.
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