-
Notifications
You must be signed in to change notification settings - Fork 5
/
app.profile.js
43 lines (37 loc) · 886 Bytes
/
app.profile.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
var miniExcludes = {
'heatmap/README.md': 1,
'heatmap/webpack.config': 1,
'heatmap/package-lock.json': 1,
'heatmap/entry': 1,
'heatmap/git-hooks/': 1
};
var copyOnlyRe = [
/heatmap\/dist\/*/
];
var profile = {
resourceTags: {
miniExclude: function (filename, mid) {
var shouldExclude =
/heatmap\/demo\/*/.test(filename) ||
/heatmap\/node_modules\/*/.test(filename) ||
/heatmap\/src\/*/.test(filename) ||
/heatmap\/tests\/*/.test(filename) ||
/heatmap\/stories\/*/.test(filename) ||
/heatmap\/storybook\/*/.test(filename) ||
mid in miniExcludes
return shouldExclude;
},
/*
amd: function (filename, mid) {
return /\.js$/.test(filename);
}, */
copyOnly: function (filename, mid) {
for (var i = copyOnlyRe.length; i--;) {
if (copyOnlyRe[i].test(mid)) {
return true;
}
}
return false;
}
}
};