1๐
โ
If you are running it from the command line, just include the following flag:
live-server --no-browser
Also, looking at the source, .live-server.json should be a json file and not a javascript module:
{
port: 8181, // Set the server port. Defaults to 8080.
host: "0.0.0.0", // Set the address to bind to. Defaults to 0.0.0.0 or process.env.IP.
open: false, // When false, it won't load your browser by default.
logLevel: 2, // 0 = errors only, 1 = some, 2 = lots
}
๐คRobert Moskal
2๐
In your project directory when you type live-server
pass additional switch --no-browser
to it
E.g
live-server --no-browser
For more details read documentation of project given here
๐คTalha Junaid
1๐
You can try this:
~/.live-server.json
{
port: 8181, // Set the server port. Defaults to 8080.
host: "0.0.0.0", // Set the address to bind to. Defaults to 0.0.0.0 or process.env.IP.
open: false, // When false, it won't load your browser by default.
logLevel: 2, // 0 = errors only, 1 = some, 2 = lots
}
Check this to see more config params.
Source:stackexchange.com