Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--serve without BrowserSync OR --watch with a built-in Web Server #770

Closed
hteumeuleu opened this issue Nov 14, 2019 · 8 comments
Closed

Comments

@hteumeuleu
Copy link

Hello! I'm new to Eleventy and so far liking it. The one thing I hate though is the use of BrowserSync. It makes everything super slow, doesn't work on older browsers and makes it harder to audit pages for web performance.

Is there a way to use Eleventy without BrowserSync? I run my site locally using the default command (npx @11ty/eleventy --serve).

@zachleat
Copy link
Member

Are you familiar with eleventy --watch? I use this when I have sites already running on my local Apache

@hteumeuleu
Copy link
Author

hteumeuleu commented Nov 15, 2019

Thank you! I didn't know about --watch, and that might do it for now. But I like the fact that --serve builds its own local server. Is this fundamentally impossible to dissociate with BrowserSync or more something you don't mind about because it's more of an edge case?

@zachleat
Copy link
Member

Naw it’s certainly in the realm of possibility. This is the first time I’ve heard this feedback though!

We do have a mechanism in place to override me for these things, it’s the enhancement queue. I’ll restructure this issue and move this into the queue.

@zachleat zachleat added enhancement needs-votes A feature request on the backlog that needs upvotes or downvotes. Remove this label when resolved. and removed education labels Nov 15, 2019
@zachleat zachleat changed the title Is it possible to disable BrowserSync? --serve without BrowserSync OR --watch with a built-in Web Server Nov 15, 2019
@zachleat
Copy link
Member

This repository is now using lodash style issue management for enhancements. This means enhancement issues will now be closed instead of leaving them open.

View the enhancement backlog here. Don’t forget to upvote the top comment with 👍!

@hteumeuleu
Copy link
Author

Thank you!

@edwardhorsford
Copy link
Contributor

I've wondered before about turning off browsersync too whilst keeping the serve portion.

@chbrandt
Copy link

I open two terminals, in one I run --serve, in the other I run --watch. Works fine.

@zachleat
Copy link
Member

Circling back here we do have a custom server api now and this task shipped with #1305 .

Thanks, y’all!

Docs https://www.11ty.dev/docs/dev-server/

@zachleat zachleat removed the needs-votes A feature request on the backlog that needs upvotes or downvotes. Remove this label when resolved. label Dec 14, 2022
@zachleat zachleat added this to the Eleventy 2.0.0 milestone Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants