npm browser-sync 2.27.1
added `snippet: boolean` option

latest releases: 3.0.2, 3.0.1, 3.0.0...
3 years ago

This release adds a feature to address #1882

Sometimes you don't want Browsersync to auto-inject it's connection snippet into your HTML - now you can disable it globally via either a CLI param or the new snippet option :)

browser-sync . --no-snippet

or in any Browsersync configuration

const config = {
  snippet: false,
};

the original request was related to Eleventy usage, so here's how that would look

eleventyConfig.setBrowserSyncConfig({
  snippet: false,
});

Don't miss a new browser-sync release

NewReleases is sending notifications on new releases.