Skip to content

How to launch a HTTP2 development web server

Lloyd Brookes edited this page Jun 21, 2017 · 8 revisions

This example will serve your current project as a static web site.

  1. Navigate into to your project
$ cd example-project
  1. Install local-web-server and lws-http2
$ npm install local-web-server lws-http2 --save-dev
  1. Launch the HTTP2 webserver. By default, your project will be hosted as a static site.
$ ws --server http2
Serving at http://mbp.local:8000, http://127.0.0.1:8000, http://192.168.0.100:8000
Clone this wiki locally