跳到主要内容

Live server

thx: https://www.chiarulli.me/Neovim/20-live-server/

What is Live Server?

Live-server is an npm package that will allow you to see real time changes for .html files in your browser.

Note

You will need to have node & npm installed I have a blog post about installing node using fnm here

Install

npm i -g live-server

Commands

You can have live server monitor and html file like this:

live-server some-file.html

Or watch a directory like this:

live-server some-directory/