File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,9 @@ var libName = 'openlayers';
4
4
//产品包名
5
5
var productName = 'iclient-openlayers' ;
6
6
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
+
14
10
if ( origin && origin . includes ( 'deploy-ol' ) ) {
15
11
libName = 'ol' ;
16
12
productName = 'iclient-ol' ;
Original file line number Diff line number Diff line change 184
184
// dist
185
185
if ( ! inArray ( excludes , 'iclient-mapboxgl' ) ) {
186
186
if ( supportES6 ( ) ) {
187
- inputScript ( disturl + '/mapboxgl/iclient-mapboxgl.js' ) ;
187
+ inputScript ( disturl + '/mapboxgl/iclient-mapboxgl-es6.min .js' ) ;
188
188
} else {
189
- inputScript ( disturl + '/mapboxgl/iclient-mapboxgl.js' ) ;
189
+ inputScript ( disturl + '/mapboxgl/iclient-mapboxgl.min. js' ) ;
190
190
}
191
191
}
192
192
if ( ! inArray ( excludes , 'iclient-mapboxgl-css' ) ) {
Original file line number Diff line number Diff line change 123
123
// dist
124
124
if ( ! inArray ( excludes , 'iclient-ol' ) ) {
125
125
if ( supportES6 ( ) ) {
126
- inputScript ( disturl + '/ol/iclient-ol.js' ) ;
126
+ inputScript ( disturl + '/ol/iclient-ol-es6.min .js' ) ;
127
127
} else {
128
- inputScript ( disturl + '/ol/iclient-ol.js' ) ;
128
+ inputScript ( disturl + '/ol/iclient-ol.min. js' ) ;
129
129
}
130
130
}
131
131
if ( ! inArray ( excludes , 'iclient-ol-css' ) ) {
You can’t perform that action at this time.
0 commit comments