guybedford / chomp

'JS Make' - parallel task runner for the frontend ecosystem with a JS extension system.
https://chompbuild.com
Apache License 2.0
143 stars 7 forks source link

Configure HTTP server root #30

Closed canadaduane closed 2 years ago

canadaduane commented 2 years ago

Currently, chomp -s serves files from the project root. However, I would like to be able to specify ./lib as the HTTP server root so that "https://localhost:8080/" maps to "[PROJECT_ROOT]/lib/".

guybedford commented 2 years ago

Added in https://github.com/guybedford/chomp/commit/5b9ec643bec09adb198a3d15f0d695b8c0289fa9, with a new:

[server]
  port = 8080
  root = "lib"

configuration as well as a --server-root=lib command-line flag.