Skip to navigation Skip to main content
These docs are for an upcoming version of Build Awesome — take extra care before linking here as URLs may change! Look to this page in the latest stable docs instead (or the full release history).

Browsersync

Starting with Eleventy 2.0, the Eleventy Dev Server is now the default stock development server in Eleventy core. This section of documentation only applies to Eleventy 1.x and 0.x and will be removed when Eleventy 2.0 is stable. If you want to use Browsersync with Eleventy 2.0, learn how to swap back to Browsersync.

Override Browsersync Server Options

Useful if you want to change or override the default Browsersync configuration. Find the Eleventy defaults in EleventyServe.js. Take special note that Eleventy does not use Browsersync’s watch options and trigger reloads manually after our own internal watch methods are complete. See full options list on the Browsersync documentation.

buildawesome.config.js
export default function($config) {
	$config.setBrowserSyncConfig({
		notify: true,
	});
};
module.exports = function($config) {
	$config.setBrowserSyncConfig({
		notify: true,
	});
};

Opt-out of the Browsersync JavaScript snippet Added in v1.0.0

New in browser-sync@2.27.1 Added in v1.0.0. Opt-out of the JavaScript snippet normally injected by Browsersync. This disables Browsersync live-reloading.

buildawesome.config.js
export default function($config) {
	$config.setBrowserSyncConfig({
		snippet: false,
	});
};
module.exports = function($config) {
	$config.setBrowserSyncConfig({
		snippet: false,
	});
};

Other pages in Watch and Serve


Updated March 27, 2025
This page on 11ty