live-server
live-server copied to clipboard
How could I start and stop live-server in js(html) language instead terminal?
hi,everyone: Now I could use code to start live-server,but I cannot stop it ,could someone give me a hand?
The docs don't mention this. I found the solutions here: https://github.com/tapio/live-server/issues/169#issuecomment-270846429
// Start
liveServer.start({ /* Options */ });
// Stop
liveServer.shutdown();