2.0.1 • Published 6 years ago
uba-server-static v2.0.1
uba-server-static
Installation
$ npm install uba-server-static -D
Usage
Edit the .ubarc
file
{
"static": [{
"dir": "src/static"
},{
"dir": "public",
"options":{
"maxAge":"1d"
}
}]
}
API
dir
- dir directory string. nothing above this root directory can be served
Look at more https://www.npmjs.com/package/serve-static#api