|-src // 源代码
|-config.json // 项目配置
|-data // 数据
|-app.js // 应用入口js
|-app.html // 应用入口html模板
|-ui // 界面
|-module // 模块
|-widget // 组件
|-route.json // 状态路由配置
|-dist // 编译代码
|-index.html // 入口html页面
- 文件位置:src/config.json
- 配置参数
参数 |
说明 |
类型 |
可选值 |
默认值 |
mdev-template |
框架模板类型 |
string |
jquery/vue/vue-cli |
jquery |
public-path |
编译代码路径 |
string |
— |
./ |
debug |
开发调试模式 |
boolean |
true/false |
true |
port |
服务端口 |
number |
— |
4000 |
proxy-list |
代理列表 |
Array |
— |
[] |
data-model |
应用数据源 |
string |
empty/full/data |
empty |
element-ui |
开启UI组件 |
boolean |
true/false |
false |
global-library |
全局公共资源 |
Array |
— |
[] |
{
"mdev-template": "vue",
"public-path": "../dist/",
"debug": true,
"data-model": "full",
"element-ui": true,
"global-library": [
"/src/ui/lib/reset.v3.1.1.css",
"/src/ui/lib/global.css"
]
}