Home > Web Front-end > JS Tutorial > body text

How to set up a local server and automatically refresh live-server

php中世界最好的语言
Release: 2018-04-11 15:23:47
Original
3870 people have browsed it

This time I will show you how live-server builds a local server and automatically refreshes. Live-server builds a local server and automatically refreshes. What are the precautions?. The following is a practical case. Let’s take a look. .

1, Installation

$ sudo npm install -g live-server
Copy after login

2. Use the following command to automatically open index.html under the current directory

$ live-server
Copy after login

I believe you have mastered the method after reading the case in this article. Please come for more exciting information. Pay attention to other related articles on php Chinese website!

Recommended reading:

How to reload the routing page in AngularJS

The sub-routes in the bottom navigation bar of vue.js are not displayed How to deal with

#Why is element-ui binding @keyup event invalid?

The above is the detailed content of How to set up a local server and automatically refresh live-server. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!