Closed pySilver closed 1 year ago
Hi! Yeah this is a bug - the intention was only to remove document.write, whilst maintaining support for other options.
Thanks for the report, I'll address it soon :)
@pySilver please try browser-sync@2.29.3
and let me know if you have any further issues :)
In some configurations it is required to append browsersync snippet into
<head>
instead of<body>
. We are doing that in environment where<body>
is being swapped during internal navigation. It is typical html-over-the-wire approach for webapps.What we used to do is leveraging this option https://browsersync.io/docs/options#option-snippetOptions
it worked perfectly. But with 2.29 release it appends an inline script that in turn appends client to
<body>
which seems to be hardcoded.Proposed resolution: an option where to append snippet and client.