Use browser-sync in Eleventy without browser-sync JavaScript (opt-out of automatic page refresh)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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