README
plugin-serve-static
A dalao-proxy for serve static files easily
only support dalao-proxy > 1.x
Usage
Install dalao-proxy
cli first
npm install -g dalao-proxy
Install plugin
globally
$ dalao-proxy plugin install -g @calvin_von/plugin-serve-static
locally
$ dalao-proxy plugin install -D @calvin_von/plugin-serve-static
Add config
"serve": {
"route": "/statics",
"root": "./",
"serveOptions": {}
}
Start proxy
$ dalao-proxy start
...
> Serving [/home/your-path]
> Static server ready, available on [ http://localhost:8000/statics ]
Start single server
$ dalao-proxy serve
> Serving [/home/your-path]
> Static server ready, available on:
> - Local: http://localhost:4200
> - Network: http://192.168.10.206:4200
more docs about dalao-proxy
, see CalvinVon/dalao-proxy on Github.