[Vuejs]-How do I edit the npm config file?

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.

Leave a comment