angular-docs-cn/tools/http-server
Greg Magolan 161ff5c79d feat(bazel): protractor_web_test_suite for release (#24787)
PR Close #24787
2018-07-12 16:34:45 -04:00
..
BUILD.bazel build: serve ivy todo app with real http-server (#23446) 2018-04-25 15:51:18 -07:00
README.md build: serve ivy todo app with real http-server (#23446) 2018-04-25 15:51:18 -07:00
http_server.bzl feat(bazel): protractor_web_test_suite for release (#24787) 2018-07-12 16:34:45 -04:00
package.json build: serve ivy todo app with real http-server (#23446) 2018-04-25 15:51:18 -07:00
yarn.lock build: serve ivy todo app with real http-server (#23446) 2018-04-25 15:51:18 -07:00

README.md

http-server

This is a simple Bazel wrapper around the http-server npm package.

A typical frontend project is served by a specific server. For Angular's example applications, our needs are simple so we can just use http-server. Real projects might need history-server (for router support) or even better a full-featured production server like express.

We modify http-server to support serving Brotli-compressed files, which end with a .br extension. This is equivalent to gzip-compression support. See https://github.com/alexeagle/http-server/commits/master which points to a modified ecstatic library.