tapio / live-server

A simple development http server with live reload capability.
http://tapiov.net/live-server/
4.41k stars 484 forks source link

i wish support current dir config ./.live-server.json #344

Open mouday opened 4 years ago

mouday commented 4 years ago
Before submitting an issue, please, see https://github.com/tapio/live-server#troubleshooting

Issue description

i wish support current dir config ./.live-server.json

Software details

now i find a way to config is ~/.live-server.json

but i wish ./.live-server.json > ~/.live-server.json

i can save config in my project

thank you!

dominait commented 4 years ago

Mouday Do you have an example of your .live-server.json file all I have is the following placed inside my project root folder .live-server.json { "port":1366 } however live-server opens with the default port 8080. I do not seem to get live-server to pick up the config file. Regards jim

antonioaltamura commented 3 years ago

is there a way to make this work? It really makes no sense having the config file in ~/.live-server.json.

Exlord commented 3 years ago

same here global config file is useless, it should be per project