plugin-serve-static

1.0.0 • Public • Published

plugin-serve-static

A dalao-proxy for serve static files easily

only support dalao-proxy > 1.x

version

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.

Package Sidebar

Install

npm i plugin-serve-static

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

5.28 kB

Total Files

6

Last publish

Collaborators

  • calvin_von