Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Use browser-sync in Eleventy without browser-sync JavaScript (opt-out of automatic page refresh)
module.exports = function(eleventyConfig) {
eleventyConfig.setBrowserSyncConfig({
snippetOptions: {
rule: {
fn: function(snippet, match) {
return match;
}
}
}
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment