Skip to content

Instantly share code, notes, and snippets.

@zachleat
Created June 8, 2021 20:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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