You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -77,45 +77,45 @@ There are two kinds of plotly.js partial bundles:
77
77
2. Custom bundles you can create yourself, if none of the distributed packages meet your needs.
78
78
79
79
Use the `traces` option to include just the trace types you need.
80
-
```
80
+
```sh
81
81
npm run partial-bundle -- --traces scatter,scattergl,scatter3d
82
82
```
83
83
Please note that the `scatter` trace is currently included in all bundles and cannot be removed.
84
84
[This behaviour may change in the future](https://github.com/plotly/plotly.js/pull/5535), so we recommend that you explicitly include `scatter` anyway if you need it in your bundle.
85
85
86
86
By default all transforms are included in the bundle.
87
87
Use the `transforms` option to specify which should be included.
88
-
```
88
+
```sh
89
89
npm run partial-bundle -- --transforms sort,filter
90
90
```
91
91
92
92
Or use `transforms none` to exclude them all.
93
-
```
93
+
```sh
94
94
npm run partial-bundle -- --transforms none
95
95
```
96
96
97
97
Use the `out` option to change the bundle filename (default `custom`).
98
98
The new bundle will be created in the `dist/` directory and named `plotly-<out>.min.js` or `plotly-<out>.js` if unminified.
99
-
```
99
+
```sh
100
100
npm run partial-bundle -- --out myBundleName
101
101
```
102
102
103
103
Use the `unminified` option to disable compression.
104
-
```
104
+
```sh
105
105
npm run partial-bundle -- --unminified
106
106
```
107
107
108
108
### Example illustrating use of different options together
109
109
To create an unminified custom bundle named `myScatters` including `scatter`, `scattergl` and `scatter3d` traces without any transforms:
0 commit comments