MyGit

v2.27.1

BrowserSync/browser-sync

版本发布时间: 2021-06-25 01:00:17

BrowserSync/browser-sync最新发布版本:v3.0.3(2024-09-25 00:17:50)

This release adds a feature to address https://github.com/BrowserSync/browser-sync/issues/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,
});

相关地址:原始地址 下载(tar) 下载(zip)

查看:2021-06-25发行的版本