File tree 1 file changed +8
-0
lines changed
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) {
52
52
var args = minimist ( process . argv . slice ( 2 ) , { } ) ;
53
53
54
54
// parse arguments
55
+ var unminified = inputBoolean ( args . unminified , false ) ;
55
56
var out = args . out ? args . out : 'custom' ;
56
57
var traces = inputArray ( args . traces , allTraces ) ;
57
58
var transforms = inputArray ( args . transforms , allTransforms ) ;
@@ -69,13 +70,20 @@ if(process.argv.length > 2) {
69
70
opts . dist = path . join ( constants . pathToDist , 'plotly-' + out + '.js' ) ;
70
71
opts . distMin = path . join ( constants . pathToDist , 'plotly-' + out + '.min.js' ) ;
71
72
73
+ console . log ( opts ) ;
74
+
72
75
opts . calendars = true ;
73
76
opts . deleteIndex = true ;
74
77
75
78
var tasks = [ ] ;
76
79
77
80
partialBundle ( tasks , opts ) ;
78
81
82
+ tasks = [
83
+ tasks [ 0 ] ,
84
+ tasks [ unminified ? 1 : 2 ]
85
+ ] ;
86
+
79
87
runSeries ( tasks , function ( err ) {
80
88
if ( err ) throw err ;
81
89
} ) ;
You can’t perform that action at this time.
0 commit comments