当前位置:网站首页>Use serve to build a local server
Use serve to build a local server
2022-08-04 03:40:00 【richest_qi】
Use serve to build a local server, the steps are as follows:
- Install serve globally:
npm install -g serve
. - Start local server:
serve target folder
.serve target-folder
.serve target-folder -p 3030
.-p
, specifies the port.serve target-folder -C
.-C
or--core
, cross-domain.
Related Links
Simple use of NPM package serve, as a web server
The node environment uses serve to publish the folder as a static service and solve the problem of cross-domain services
边栏推荐
- 逻辑漏洞----其他类型
- base address: environment variable
- STM8S105k4t6c---------------Light up LED
- LeetCode每日一题(2285. Maximum Total Importance of Roads)
- [Study Notes Dish Dog Learning C] Dynamic Memory Management
- 软件测试如何系统规划学习呢?
- 数据安全峰会2022 | 美创DSM获颁“数据安全产品能力验证计划”评测证书
- SQL interview Questions
- 仿牛客论坛项目梳理
- Mockito unit testing
猜你喜欢
[Medical Insurance Science] To maintain the safety of medical insurance funds, we can do this
哎,又跟HR在小群吵了一架!
什么是数字孪生智慧城市应用场景
马尔可夫链
Detailed analysis of scaffolding content
SQL injection in #, - +, - % 20, % 23 is what mean?
2千兆光+6千兆电导轨式网管型工业级以太网交换机支持X-Ring冗余环网一键环网交换机
仿牛客论坛项目梳理
说说数据治理中常见的20个问题
Polygon zkEVM network node
随机推荐
帮助企业实现数字化转型成功的八项指导原则
Mockito unit testing
Mini program + new retail, play the new way of playing in the industry!
机器学习之视频学习【更新】
深度学习——以CNN服装图像分类为例,探讨怎样评价神经网络模型
How to automatically export or capture abnormal login ip and logs in elastic to the database?
SQL interview Questions
4路双向HDMI综合业务高清视频光端机8路HDMI高清视频光端机
一个属于程序员的七夕节!
MySQL Query Exercise (1)
RSS订阅微信公众号初探-feed43
new Date将字符串转化成日期格式 兼容IE,ie8如何通过new Date将字符串转化成日期格式,js中如何进行字符串替换, replace() 方法详解
Oracle与Postgresql在PLSQL内事务回滚的重大差异
本周四晚19:00知识赋能第4期直播丨OpenHarmony智能家居项目之设备控制实现
[Medical Insurance Science] To maintain the safety of medical insurance funds, we can do this
mq应用场景介绍
学会iframe并用其解决跨域问题
tkmapper的crud示例:
嵌入式数据库开发编程MySQL(全)
The general SQL injection flow (sample attached)