https://github.com/okoala/egg-multiple-static
support multiple static server plugin for egg
https://github.com/okoala/egg-multiple-static
egg egg-plugin eggjs static
Last synced: about 1 year ago
JSON representation
support multiple static server plugin for egg
- Host: GitHub
- URL: https://github.com/okoala/egg-multiple-static
- Owner: okoala
- License: mit
- Created: 2016-10-20T05:31:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-20T08:13:26.000Z (over 9 years ago)
- Last Synced: 2025-03-27T17:51:48.831Z (over 1 year ago)
- Topics: egg, egg-plugin, eggjs, static
- Language: JavaScript
- Homepage:
- Size: 43.9 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# egg-multiple-static
Support multiple static server plugin for egg, base on [koa-static-cache](https://github.com/koajs/static-cache).
## Install
```bash
$ npm i egg-multiple-static --save
```
## Usage
- plugin.js
```js
exports.multipleStatic = {
enable: true,
package: 'egg-multiple-static',
};
```
## Configuration
Support all configurations in [koa-static-cache](https://github.com/koajs/static-cache).
## License
[MIT](LICENSE)