koatty_cli
Advanced tools
Comparing version 1.20.2 to 1.21.0
@@ -190,2 +190,5 @@ #!/usr/bin/env node | ||
//add static middleware | ||
copyFile('middleware' + path.sep + 'Static.ts', APP_PATH + path.sep + 'middleware' + path.sep + 'Static.ts'); | ||
console.log(); | ||
@@ -192,0 +195,0 @@ console.log(' enter path:'); |
@@ -5,11 +5,14 @@ /** | ||
* @ license: Apache License 2.0 | ||
* @ version: 2019-10-21 10:45:53 | ||
* @ version: 2020-04-30 15:19:46 | ||
*/ | ||
export default { | ||
list: [], //加载的中间件列表 | ||
list: ['Static'], //加载的中间件列表 | ||
config: { //中间件配置 | ||
// 静态资源中间件默认未开启 | ||
Static: false | ||
// 需要开启请修改为: | ||
// Static: { | ||
// cache: false | ||
// cache: true | ||
// }, | ||
} | ||
}; |
@@ -16,3 +16,4 @@ { | ||
"dependencies": { | ||
"koatty": "^1.x.x" | ||
"koatty": "^1.x.x", | ||
"think_static": "^2.x.x" | ||
}, | ||
@@ -19,0 +20,0 @@ "devDependencies": { |
{ | ||
"name": "koatty_cli", | ||
"version": "1.20.2", | ||
"version": "1.21.0", | ||
"description": "Koatty command line tool.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
49842
28
841