UNPKG
static-server-function
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
static-server-function
/
config
/
config.js
13 lines
(12 loc)
•
440 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
//引入yargs
const
argv
=
require(
'yargs'
).argv
module
.
exports
={ port:argv.port ||
9521
,
//端口号
// process.cwd()获取执行命令所在的根目录
root:argv.root || process.cwd(),
//网站根目录
cache:{ qiangCache:
true
,
//设置是否开启强缓存
cacheTime:
3600
,
//设置缓存资源的声明周期
xieCache:
true
,
//是否开启协商缓存
} }