Skip to content

Commit 5c6ee5c

Browse files
committed
fix 自定义打包(单独打common包)失败的问题
1 parent 6e86348 commit 5c6ee5c

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

build/build.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ var clientsTabs = {
88
"OpenLayers": "openlayers",
99
"Leaflet": "leaflet",
1010
"MapboxGL": "mapboxgl",
11-
"iClient Classic": "classic",
11+
"iClient Classic": "classic"
1212
};
13+
var exceptFields = ["title", "description", "description_en"];
14+
1315
//设当前客户端名称,其值为clientsTabs的key值之一
1416
var currentClientTab = "OpenLayers";
1517

@@ -26,6 +28,7 @@ function init() {
2628
updateCommand();
2729
bindEvents();
2830
}
31+
2932
function initClientTabs() {
3033
var $clientTabList = $("ul#client");
3134
var $clientTabContents = $('div.tab-content');
@@ -95,7 +98,7 @@ function initModules(clientName, modules) {
9598
addGroup(clientName, key, title, module.description, $("#" + clientName + "select")[0]);
9699
var $container = $("#" + clientName + "_" + key);
97100
for (var itemKey in module) {
98-
if (itemKey === 'title' || itemKey === 'description') {
101+
if (exceptFields.indexOf(itemKey) > -1) {
99102
continue;
100103
}
101104
addModule(itemKey, $container[0], false, module[itemKey].name);

build/deps.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ deps = {
105105
"./src/common/iServer/DataFlowService.js"
106106
],
107107
"graph": [
108-
"./src/common/iServer/Bar.js",
109-
"./src/common/iServer/Bar3D.js",
110-
"./src/common/iServer/Circle.js",
111-
"./src/common/iServer/Line.js",
112-
"./src/common/iServer/Pie.js",
113-
"./src/common/iServer/Point.js",
114-
"./src/common/iServer/Ring.js"
108+
"./src/common/overlay/Bar.js",
109+
"./src/common/overlay/Bar3D.js",
110+
"./src/common/overlay/Circle.js",
111+
"./src/common/overlay/Line.js",
112+
"./src/common/overlay/Pie.js",
113+
"./src/common/overlay/Point.js",
114+
"./src/common/overlay/Ring.js"
115115
]
116116

117117
},

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy