Skip to content

Commit 6781433

Browse files
authored
Merge pull request #367 from plotly/cam/update-build-tooling
build: Update build tooling
2 parents 4580b3b + 7076fa5 commit 6781433

6 files changed

Lines changed: 1616 additions & 2857 deletions

File tree

.gitignore

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,9 @@ npm-debug.log*
77
!.github
88
!.gitignore
99
!.gitattributes
10-
!.npmignore
11-
!.eslintrc
12-
!.babelrc
13-
!.eslintignore
1410

1511
dist
16-
!example/dist
1712

1813
package-lock.json.*
1914

20-
factory.js
21-
factory.js.map
22-
react-plotly.js
23-
react-plotly.js.map
2415
yarn.lock

.npmignore

Lines changed: 0 additions & 13 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,13 @@ const Plot = createPlotlyComponent(Plotly);
207207

208208
## Loading from a `<script>` tag
209209

210-
For quick one-off demos on [CodePen](https://codepen.io/) or [JSFiddle](https://jsfiddle.net/), you may wish to just load the component directly as a script tag. We don't host the bundle directly, so you should never rely on this to work forever or in production, but you can use a third-party service to load the factory version of the component from, for example, [https://unpkg.com/react-plotly.js@latest/dist/create-plotly-component.js](https://unpkg.com/react-plotly.js@latest/dist/create-plotly-component.js).
210+
For quick one-off demos on [CodePen](https://codepen.io/) or [JSFiddle](https://jsfiddle.net/), you may wish to just load the component directly as a script tag. We don't host the bundle directly, so you should never rely on this to work forever or in production, but you can use a third-party service to load the factory version of the component from, for example, [https://unpkg.com/react-plotly.js@latest/dist/create-plotly-component.min.js](https://unpkg.com/react-plotly.js@latest/dist/create-plotly-component.min.js).
211211

212212
You can load plotly.js and the component factory with:
213213

214214
```html
215215
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
216-
<script src="https://unpkg.com/react-plotly.js@latest/dist/create-plotly-component.js"></script>
216+
<script src="https://unpkg.com/react-plotly.js@latest/dist/create-plotly-component.min.js"></script>
217217
```
218218

219219
And instantiate the component with

0 commit comments

Comments
 (0)