Difference between VSCode Live Server and Node Live Server

I’m getting started with JS so I’ve reached the point where I have to install a live server with npm. VSCode has a popular extension that many know of called Live Server(Ritwick Dey), my question is what is the difference between using the extension and installing the package with node? Are there any standout features that could aid in my development or are they pretty much the same? Thanks

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

Both will work in a similar way if you do not plan to use custom configurations and work alone on a single computer.

If you are working in a large team and want to have the same setup available for everyone, you should install the node module for the project and go with the ‘Usage from node’ section of the documentation.

Both options have great documentation on how to customize them. They differ in naming but for the most part both projects offer similar options.

For live-server, the npm package, your can use the online documentation to see the available ones.

https://www.npmjs.com/package/live-server

For the VsCode extension, you have a list of available configuration here.

https://github.com/ritwickdey/vscode-live-server/blob/HEAD/docs/settings.md

Before selecting one for you project, you should look at the available options and see if there is a feature that might be helpful for your project.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x