Skip to content

Commit 8d902aa

Browse files
committed
use --name in partial bundle script
1 parent e1c4cc3 commit 8d902aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ var Plotly = require('./path/to/custom-plotly');
9797
```
9898

9999
Alternatively you could browserify a custom bundle of desired trace modules e.g. `pie` and `choropleth` using
100-
`npm run partial-bundle pie choropleth name=custom`
100+
`npm run partial-bundle pie choropleth --name=custom`
101101

102102

103103
## Building plotly.js

tasks/partial_bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if(argv.length > 2) {
2626
) {
2727
traceList.push(a);
2828
}
29-
if(a.indexOf('name=') !== -1) name = a.replace('name=', '');
29+
if(a.indexOf('--name=') === 0) name = a.replace('--name=', '');
3030
}
3131
if(!name) name = 'custom';
3232
traceList = traceList.sort();

0 commit comments

Comments
 (0)