Open NemoStein opened 3 years ago
This PR addresses the issue #74
It adds a new CLI argument --extern path (or --extern=path) that can be repeated to serve content from multiple roots.
--extern path
--extern=path
$ cd ~/project-root $ servor ./static --extern ./src --extern ./libs
It also adds the property extern of type string[] to the config object.
extern
string[]
import servor from 'servor'; servor({ /* ... */ extern: [ './src', './libs' ] })
This PR addresses the issue #74
It adds a new CLI argument
--extern path
(or--extern=path
) that can be repeated to serve content from multiple roots.It also adds the property
extern
of typestring[]
to the config object.