Created
June 8, 2021 20:21
-
-
Save zachleat/7885f99b5acd9d867ffc811894bf3af5 to your computer and use it in GitHub Desktop.
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