File tree Expand file tree Collapse file tree 2 files changed +5
-17
lines changed Expand file tree Collapse file tree 2 files changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -55,26 +55,20 @@ npm run custom-bundle -- --traces scatter,scattergl --strict
55
55
```
56
56
57
57
Use the ` out ` option to change the bundle filename (default ` custom ` ).
58
- The new bundle will be created in the ` dist/ ` directory and named ` plotly-<out>.min. js ` or ` plotly-<out>.js ` if unminified .
58
+ The new bundle will be created in the ` dist/ ` directory and named ` plotly-<out>.js ` and ` plotly-<out>.min. js ` for minified .
59
59
``` sh
60
60
npm run custom-bundle -- --out myBundleName
61
61
```
62
62
63
- Use the ` unminified ` option to disable compression.
64
- ``` sh
65
- npm run custom-bundle -- --unminified
66
- ```
67
-
68
63
# Example illustrating use of different options together
69
- To create an unminified custom bundle named ` myScatters ` including ` scatter ` , ` scattergl ` and ` scatter3d ` traces without any transforms:
64
+ To create a custom bundle named ` myScatters ` including ` scatter ` , ` scattergl ` and ` scatter3d ` traces without any transforms:
70
65
``` sh
71
66
npm run custom-bundle -- \
72
- --unminified \
73
67
--out myScatters \
74
68
--traces scatter,scattergl,scatter3d \
75
69
--transforms none
76
70
```
77
71
Or simply on one line:
78
72
``` sh
79
- npm run custom-bundle -- --unminified -- out myScatters --traces scatter,scattergl,scatter3d --transforms none
73
+ npm run custom-bundle -- --out myScatters --traces scatter,scattergl,scatter3d --transforms none
80
74
```
Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ 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 ) ;
56
55
var out = args . out ? args . out : 'custom' ;
57
56
var traces = inputArray ( args . traces , allTraces ) ;
58
57
var transforms = inputArray ( args . transforms , allTransforms ) ;
@@ -67,13 +66,8 @@ if(process.argv.length > 2) {
67
66
strict : strict ,
68
67
} ;
69
68
70
- if ( unminified ) {
71
- opts . dist = path . join ( constants . pathToDist , 'plotly-' + out + '.js' ) ;
72
- } else {
73
- opts . distMin = path . join ( constants . pathToDist , 'plotly-' + out + '.min.js' ) ;
74
- }
75
-
76
- console . log ( opts ) ;
69
+ opts . dist = path . join ( constants . pathToDist , 'plotly-' + out + '.js' ) ;
70
+ opts . distMin = path . join ( constants . pathToDist , 'plotly-' + out + '.min.js' ) ;
77
71
78
72
opts . calendars = true ;
79
73
opts . deleteIndex = true ;
You can’t perform that action at this time.
0 commit comments