-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.js
75 lines (75 loc) · 2.02 KB
/
build.js
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
({
paths: {
jquery: "empty:",
sdk: "empty:",
hyprlive: "empty:",
hyprlivecontext: "empty:",
underscore: "vendor/underscore/underscore",
backbone: "vendor/backbone/backbone"
},
dir: "compiled/scripts/",
locale: "en-us",
optimize: "uglify2",
keepBuildDir: false,
optimizeCss: "none",
removeCombined: true,
skipPragmas: true,
modules: [
{
name: "modules/common",
include: [
'modules/api',
'modules/backbone-mozu',
'modules/cart-monitor',
'modules/contextify',
'modules/jquery-mozu',
'modules/login-links',
'modules/models-address',
'modules/models-customer',
'modules/models-documents',
'modules/models-faceting',
'modules/models-messages',
'modules/models-product',
'modules/scroll-nav',
'modules/search-autocomplete',
'modules/views-collections',
'modules/views-messages',
'modules/views-paging',
'modules/views-productlists',
],
exclude: ['jquery'],
},
{
name: "pages/cart",
exclude: ["modules/common"]
},
{
name: "pages/category",
exclude: ["modules/common"]
},
{
name: "pages/checkout",
exclude: ["modules/common"]
},
{
name: "pages/error",
exclude: ["modules/common"]
},
{
name: "pages/location",
exclude: ["modules/common"]
},
{
name: "pages/myaccount",
exclude: ["modules/common"]
},
{
name: "pages/product",
exclude: ["modules/common"]
},
{
name: 'pages/search',
exclude: ["modules/common"]
}
]
});