-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logFileChanges has no effect #479
Comments
Tried monitoring the file.reload event: browserSync.emitter.on("file:reload", function (e) {
console.log(e);
}); In the output event, log is true, so the logger of course logs the change. {
assetFileName: 'app.css',
fileExtension: 'css',
cwd: ...,
path: 'css/app.css',
type: 'inject',
log: true
} |
Tried to change the browserSync.reload to use stream. This results in the file.reload event not triggering at all, so now the logFileChanges doesn't log anything even if it's set to true. The notifications in the browser still show the file that changed. Is this intended for streaming? watch(config.dist + '**/*.*')
.pipe(browserSync.reload({stream:true})); |
Thanks for reporting, we'll get it fixed asap |
Any progress on this?:) It's a general issue for all browserSync.reload calls. I would be more interested in knowing if it failed to reload the browsers. On a similar note, setting logLevel to "warn" appears to have no effect. |
This is scheduled for next round of bug fixes :) |
Or if you would like to make this happen sooner, we love pull requests. I'm thinking the issue is mainly here https://github.com/BrowserSync/browser-sync/blob/master/lib/logger.js#L41-L56 Could be as easy as checking the option along with the |
Thanks, guys. Your discussion helps me to find a solution. Thanks a lot |
Hi
I set up a basic BrowserSync server task in a gulp project, and i set the option "logFileChanges" to false. This however seems to have no effect. It still logs out whenever a file change:
My BrowserSync task currently looks like this:
The text was updated successfully, but these errors were encountered: