美文网首页
本地启动serve

本地启动serve

作者: 西柚科技 | 来源:发表于2021-04-09 20:44 被阅读0次
  1. Open your terminal and type

npm install -g http-server

  1. Go to the root folder that you want to serve you files and type:

http-server ./

  1. Read the output of the terminal, something kinda http://localhost:8080 will appear.

Everything on there will be allowed to be got. Example:

background: url('http://localhost:8080/waw.png');

相关文章

网友评论

      本文标题:本地启动serve

      本文链接:https://www.haomeiwen.com/subject/uipwkltx.html