docsifyjs / docsify

🃏 A magical documentation site generator.
https://docsify.js.org
MIT License
27.47k stars 5.67k forks source link

switch from live-server to five-server #2218

Closed trusktr closed 9 months ago

trusktr commented 1 year ago

I've been having issues with live-server lately (in other projects): it is sometimes flaky, and sometimes the network connection is really slow, especially in Windows PowerShell. live-server hasn't been updated in a while, so it seems that something has changed in my system that somehow affects live-server.

There's a newer package called five-server (a fork of live-server) that is a drop-in replacement for it, plus new features, and it has been working great without any issues.

Koooooo-7 commented 1 year ago

Hi Joe, you mean this one https://github.com/yandeu/five-server ? It seems not very active for now. I suppose that we could hold migrate to it later when it is stable.

trusktr commented 1 year ago

@Koooooo-7 Yeah, that's the one.

I was testing with live-server in all OSes including Windows, but live-server would not work for me in Windows PowerShell. However, five-server did! So I switched to five-server for all my other projects, and it is going great.

Koooooo-7 commented 1 year ago

I was testing with live-server in all OSes including Windows, but live-server would not work for me in Windows PowerShell. However, five-server did! So I switched to five-server for all my other projects, and it is going great.

Sounds weird, technically, it should work. Sorry that I can not help to make sure what the issue is in PowerShell since I don't have a Windows for now.

Hi @sy-records , could you have a check on it if you have a Windows on your hand.

If the live-server couldn't work in Windows PowerShell, we may need do the adapted change asap.

jhildenbiddle commented 10 months ago

My vote would be to replace live-server with BrowserSync since we are already using it for our test environment. It supports all of the niceties of live-server and then some. It is also actively maintained.