What is Live Server?
Live Server lets the user to see the real time changes done in .html files in a browser.
Live Server in VS Code
In Visual Studio Code, there’s a plugin ‘Live Server’ which let’s the user host a local live server to see the changes in there html project.
live-server
live-server is an npm
package which basically sets up a live server.
Requirements
Must have node
& npm
installed.
Installation
Run the following command in the terminal.
$ npm i -g live-server;
Usage
You can use live-server for a specific html file like this:
$ live-server file.html
or on an entire directory
$ live-server directory/
or cd into the directory and use
$ live-server .