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