Skip to content

Running 11ty locally with Netlify CLI #1965

Answered by noelforte
freshyill asked this question in Q&A
Discussion options

You must be logged in to vote

Eleventy has 2 modes for watching files for changes, the first of which you already mentioned: eleventy --serve. There is another one, eleventy --watch which will process files as they change on disk, without spinning up a local browser-sync instance. See: https://www.11ty.dev/docs/usage/#re-run-eleventy-when-you-save for more info.

Is there a reason you're keen to use the Netlify CLI for local development? Unless you want to test your Netlify configurations before deploying anything, even for previewing purposes, or test any serverless logic, browser-sync offers a whole bunch of stuff out of the box that I personally find more than enough for my own local development needs. The other ben…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by freshyill
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants