Skip to content

Commit 8bb92f8

Browse files
committed
bring back unminified arg for custom bundles
1 parent c2776aa commit 8bb92f8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tasks/custom_bundle.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)