Skip to content

Commit 98d8fe3

Browse files
fix 漏提交
1 parent ad29cee commit 98d8fe3

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

build/webpack.config.openlayers.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@ var libName = 'openlayers';
44
//产品包名
55
var productName = 'iclient-openlayers';
66

7-
let origin;
8-
if (process.env['npm_config_argv']) {
9-
var argv = JSON.parse(process.env['npm_config_argv']);
10-
origin = argv.original;
11-
} else {
12-
origin = process.env['npm_lifecycle_event'];
13-
}
7+
var argv = JSON.parse(process.env['npm_config_argv']);
8+
var origin = argv.original;
9+
1410
if (origin && origin.includes('deploy-ol')) {
1511
libName = 'ol';
1612
productName = 'iclient-ol';

dist/mapboxgl/include-mapboxgl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@
184184
// dist
185185
if (!inArray(excludes, 'iclient-mapboxgl')) {
186186
if (supportES6()) {
187-
inputScript(disturl + '/mapboxgl/iclient-mapboxgl.js');
187+
inputScript(disturl + '/mapboxgl/iclient-mapboxgl-es6.min.js');
188188
} else {
189-
inputScript(disturl + '/mapboxgl/iclient-mapboxgl.js');
189+
inputScript(disturl + '/mapboxgl/iclient-mapboxgl.min.js');
190190
}
191191
}
192192
if (!inArray(excludes, 'iclient-mapboxgl-css')) {

dist/ol/include-ol.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@
123123
// dist
124124
if (!inArray(excludes, 'iclient-ol')) {
125125
if (supportES6()) {
126-
inputScript(disturl + '/ol/iclient-ol.js');
126+
inputScript(disturl + '/ol/iclient-ol-es6.min.js');
127127
} else {
128-
inputScript(disturl + '/ol/iclient-ol.js');
128+
inputScript(disturl + '/ol/iclient-ol.min.js');
129129
}
130130
}
131131
if (!inArray(excludes, 'iclient-ol-css')) {

0 commit comments

Comments
 (0)