-
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
enhancementNew feature or requestNew feature or requestneeds-votesA feature request on the backlog that needs upvotes or downvotes. Remove this label when resolved.A feature request on the backlog that needs upvotes or downvotes. Remove this label when resolved.
Description
Hello! I'm trying to upgrade my site to Eleventy 2.0.0 and the only feature I'm missing from the old BrowserSync server is the ability to not inject the snippet on certain pages.
I have a little in-browser editor for my blog and I run and use locally, and when I make edits in there it saves the changes back to the Markdown file on my filesystem. When this happens, it causes a page refresh, which blows away the state of my editor. I'd love to be able to tell Eleventy to not auto-reload that route specifically when a change is detected.
I was previously able to achieve this using this method in my Eleventy config:
config.setBrowserSyncConfig({
snippetOptions: {
ignorePaths: 'pathToIgnore/**',
},
})
tbroyer and edwardhorsford
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestneeds-votesA feature request on the backlog that needs upvotes or downvotes. Remove this label when resolved.A feature request on the backlog that needs upvotes or downvotes. Remove this label when resolved.