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: CUSTOM_BUNDLE.md
+4-15
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# Custom bundle
2
-
You can simply make custom bundles yourself, if none of the [distributed packages](https://github.com/plotly/plotly.js/blob/master/dist/README.md) meet your needs, or you want to make a more optimized bundle file with/without specific traces and transforms.
2
+
You can simply make custom bundles yourself, if none of the [distributed packages](https://github.com/plotly/plotly.js/blob/master/dist/README.md) meet your needs, or you want to make a more optimized bundle file with/without specific traces.
3
3
4
4
Make sure you have the versions of node/npm that's recommended:
5
5
- plotly.js before 2.5: Node 12/npm 6
@@ -27,7 +27,7 @@ cd plotly.js
27
27
npm i
28
28
```
29
29
30
-
By default all traces and transforms are included in the bundle if you simply run:
30
+
By default all traces are included in the bundle if you simply run:
31
31
```sh
32
32
npm run custom-bundle
33
33
```
@@ -39,16 +39,6 @@ npm run custom-bundle -- --traces scatter,scattergl,scatter3d
39
39
Please note that the `scatter` trace is currently included in all bundles and cannot be removed.
40
40
[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.
41
41
42
-
Use the `transforms` option to specify which should be included.
43
-
```sh
44
-
npm run custom-bundle -- --transforms sort,filter
45
-
```
46
-
47
-
Or use `transforms none` to exclude them all.
48
-
```sh
49
-
npm run custom-bundle -- --transforms none
50
-
```
51
-
52
42
Use the `strict` option to use strict trace types where possible.
53
43
```sh
54
44
npm run custom-bundle -- --traces scatter,scattergl --strict
@@ -66,15 +56,14 @@ npm run custom-bundle -- --unminified
66
56
```
67
57
68
58
# 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:
59
+
To create an unminified custom bundle named `myScatters` including `scatter`, `scattergl` and `scatter3d` traces:
0 commit comments