UNPKG

mm_os

Version:

MM_OS服务端架构,用于快速构建应用程序,支持网站建设、小程序后台、AI应用、物联网(IOT/AIOT)、游戏服务端等多种场景。

54 lines 1.42 kB
{ "name": "web_static", "title": "web静态文件处理", "description": "用于处理静态文件", "version": "1.0", "main": "./index.js", "type": "web", "state": 1, "sort": 90, // 是否启用静态文件处理 "static": true, // 默认首页文件 "index": "index.html", // 缓存键前缀 "key_prefix": "static:", // 前端缓存时间,单位秒 "max_age": 7200, // 是否开启缓存 "cache": true, // 后端缓存时间,单位秒 "cache_age": 31536000, // 是否开启immutable缓存 "immutable": true, // 是否开启隐藏文件处理 "hidden": false, // 是否格式化文件 "format": true, // 是否指定文件扩展名 "extensions": false, // 是否开启brotli压缩 "brotli": false, // 是否开启gzip压缩 "gzip": false, // 静态文件根目录 "root": "./static", // 编译vue文件,启动后会将vue转为js,可让前端通过 import xxx from './xxx.vue' 引入 "compile_vue": true, // 编译markdown文件,启动后会将markdown转为html "compile_md": true, // 是否将files中的文件的js转换为amd格式 "convert_amd": false, // 指定路径文件需要转换 "src_path": "/src", // 监听路由路径 "path": "/", // 需要转换的文件扩展名 "files": [ ".js", ".vue", ".html" ], // 是否启用文件修改监听(实时检测文件修改) "watch": true }