-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
37 lines (33 loc) · 1006 Bytes
/
main.js
File metadata and controls
37 lines (33 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require.config({
paths: {
"angular": '/libs/angular/angular',
"angular-ui-router": '/libs/angular-ui-router/release/angular-ui-router',
"angularAMD": "/libs/angularAMD/angularAMD",
"ngload": "/libs/angularAMD/ngload",
"mock": "/libs/mockjs/dist/mock",
"toolService": "./gwas-single/src/script/service/toolService",
//config
"config": "./config"
},
urlArgs: "version=" + new Date().getTime(),
shim: {
"angular": { exports: "angular" },
"angular-ui-router": ['angular'],
"angularAMD": ["angular"],
"ngload": ["angularAMD"],
"mock": {
exports: "mock"
}
},
deps: ['app']
})
/**
* 1.定义模块路径 angular angular-ui-router angularAMD ngLoda
* 2.重新定义每个非amd规范模块的引用对象 shim
* 3.定义当前模块依赖
*
*
* 整个模块加载前会依赖 app.js 默认路径跟mainjs 同级
*
* 先加载app (.js可省略)
*/