xdyhttp-server

npm install xdyhttp-server -g

Usage no npm install needed!

<script type="module">
  import xdyhttpServer from 'https://cdn.skypack.dev/xdyhttp-server';
</script>

README

xdyhttp-server: @1.0.0 xdyhttp-server


install

npm install xdyhttp-server -g

usage

进入本地某个目录下 执行xdyhttp-server 本地起一个静态服务器

options

url localhost: default 8091


xdyhttp-server: @1.0.7 xdyhttp-server

添加功能

1.添加服务端得gzip压缩功能 减少文件在传输过程中消耗得流量和时间 服务器压缩功能 Accept-Encoding 压缩文件

2.添加缓存304机制

3.添加获取ip+端口

4.随机端口号

5.打开默认浏览器