es-serve

0.9.0 • Public • Published

ES Serve

Simple web server for modern single page apps.

Usage: es-serve [path]

Options:

  • --port/-p number, APP_PORT=number - Server port

  • --base-href string, APP_BASE_HREF=string - Rewrite the value of <base href=…> element

  • --(no-)index-fallback, APP_INDEX_FALLBACK=boolean - Serve index.html for unknown routes instead of 404

  • --(no-)rewrite-imports, APP_REWRITE_IMPORTS=boolean - Make bare module imports in JS just work™

  • --module-map/-m key=string ..., APP_MODULE_MAP=key=string,... - Rewrite module names

  • --module-dir string, APP_MODULE_DIR=string - Module directory. Default: node_modules

  • --globals/-g key=string ..., APP_GLOBALS=key=string,... - Serve some variables as /globals.json

  • --(no-)verbose/-v, APP_VERBOSE=boolean - Verbose logging mode

  • --watch/-w string, APP_WATCH=string - Enables watch mode and watches provided path

  • --watch-ignore/-i string ..., APP_WATCH_IGNORE=string,... - Files to ignore when watching

  • --(no-)help/-h, APP_HELP=boolean - Show help

Options can be provided via server.json or server.toml config file. Key names should be in lower_snake_case.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.9.0
    2
    • latest

Version History

Package Sidebar

Install

npm i es-serve

Weekly Downloads

4

Version

0.9.0

License

ISC

Unpacked Size

9.93 kB

Total Files

3

Last publish

Collaborators

  • phaux