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:
- Created 8 years ago
- Comments:7
Top 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 >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
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.
@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.