File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ if(process.argv.length > 2) {
5252 var args = minimist ( process . argv . slice ( 2 ) , { } ) ;
5353
5454 // parse arguments
55+ var unminified = inputBoolean ( args . unminified , false ) ;
5556 var out = args . out ? args . out : 'custom' ;
5657 var traces = inputArray ( args . traces , allTraces ) ;
5758 var transforms = inputArray ( args . transforms , allTransforms ) ;
@@ -69,13 +70,20 @@ if(process.argv.length > 2) {
6970 opts . dist = path . join ( constants . pathToDist , 'plotly-' + out + '.js' ) ;
7071 opts . distMin = path . join ( constants . pathToDist , 'plotly-' + out + '.min.js' ) ;
7172
73+ console . log ( opts ) ;
74+
7275 opts . calendars = true ;
7376 opts . deleteIndex = true ;
7477
7578 var tasks = [ ] ;
7679
7780 partialBundle ( tasks , opts ) ;
7881
82+ tasks = [
83+ tasks [ 0 ] ,
84+ tasks [ unminified ? 1 : 2 ]
85+ ] ;
86+
7987 runSeries ( tasks , function ( err ) {
8088 if ( err ) throw err ;
8189 } ) ;
You can’t perform that action at this time.
0 commit comments