-
Notifications
You must be signed in to change notification settings - Fork 755
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
Cannot disable browser-sync injection into iframe #553
Comments
Same problem, trying to figure it out. Please, let me know if you fix it. |
Please provide a minimal working example that highlights this bug. |
+1 Same problem here as well |
Set up a repo that demos the problem. Make a change to the parent https://github.com/tomgenoni/browser-sync-iframe |
@tomgenoni many thanks! |
@tomgenoni - there was an error in your original gulpfile. Either way, in your example, with the latest update (2.7.2), this will work as expected. gulp.task('browser-sync', function () {
browserSync({
server: {
baseDir: [__dirname] + '/dist/'
},
snippetOptions: {
blacklist: ["/iframe/index.html"]
}
});
}); |
Thank you @shakyShane. I can confirm this works. I've updated my example repo to provide a working version: https://github.com/tomgenoni/browser-sync-block-iframe-example |
Ultimately, I am trying to prevent browser-sync (v2.5.2) from injecting into an iframe with a src of local content.
I've tried to disabled it completely with:
I've also tried ignoring all files:
But these don't work (also tried
blacklist
) and the snippet is injected to both the parent and iframe. Am I missing something?The text was updated successfully, but these errors were encountered: