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';
44//产品包名
55var 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+
1410if ( origin && origin . includes ( 'deploy-ol' ) ) {
1511 libName = 'ol' ;
1612 productName = 'iclient-ol' ;
Original file line number Diff line number Diff line change 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' ) ) {
Original file line number Diff line number Diff line change 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' ) ) {
You can’t perform that action at this time.
0 commit comments