config.js
1.41 KB
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
38
39
40
41
42
43
44
(function (root, config) {
config = config();
if (typeof module === "object" && module.exports) { // cmd方式 在打包环境下使用
module.exports = config;
} else {
define("amdConfig", function() {});
require(config);
}
}(this, function () {
var manifest={};
return {
waitSeconds: 0,
baseUrl: "/mobilemode/mobile/dist/",
urlArgs: function (moduleName, url) {
if (~url.indexOf("?v=")) return "";
var v = manifest[moduleName] || new Date().getTime();
return "?v=" + v;
},
paths: {
"require": "js/lib/require/require.min_wev8",
"fastclick": "js/lib/fastclick/fastclick.min_wev8",
"mobilebone": "js/lib/mobilebone/mobilebone_wev8",
"zepto": "js/lib/zepto/zepto.min_wev8",
'sortable': 'js/lib/sortable/Sortable.min',
"amdConfig": "js/portal/config",
"juicer": "js/lib/juicer/juicer.min_wev8",
'portal': 'js/portal/portal',
'portal_css': 'css/portal/portal',
'portal/classify': 'js/portal/page/classify',
'portal/list': 'js/portal/page/list',
'portal/detail': 'js/portal/page/detail',
'portal/comment': 'js/portal/page/comment',
'utils': 'js/portal/utils'
},
shim: {
"juicer": { exports: 'juicer' }
}
};
}));