0.0.1 • Published 6 years ago
egg-static-plus v0.0.1
egg-static-plus
Static server plugin for egg, base on egg-static.
Install
$ npm i egg-static-plusConfiguration
egg-static-plus support all configurations in koa-static-cache. and with default configurations below:
- prefix:
'/public/' - dir:
path.join(appInfo.baseDir, 'app/public') - dynamic:
true - preload:
false - maxAge:
31536000in prod env,0in other envs - buffer:
truein prod env,falsein other envs
egg-static-plus provides three more option:
0.0.1
6 years ago