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: BUILDING.md
-35
Original file line number
Diff line number
Diff line change
@@ -3,41 +3,6 @@ Depending on your needs you may require/import one of [the distributed plotly.js
3
3
4
4
The sections below provide additional info in respect to alternative building frameworks.
5
5
6
-
## Browserify example
7
-
8
-
Given source file:
9
-
```js
10
-
// file: index.js
11
-
var Plotly =require('plotly.js-dist-min');
12
-
// ....
13
-
```
14
-
15
-
then simply run
16
-
17
-
```sh
18
-
browserify index.js > bundle.js
19
-
```
20
-
21
-
---
22
-
## Webpack
23
-
24
-
For plotly.js to build with Webpack you will need to install [ify-loader@v1.1.0+](https://github.com/hughsk/ify-loader) and add it to your `webpack.config.json`. This adds Browserify transform compatibility to Webpack which is necessary for some plotly.js dependencies.
25
-
26
-
A repo that demonstrates how to build plotly.js with Webpack can be found [here](https://github.com/plotly/plotly-webpack). In short add `ify-loader` to the `module` section in your `webpack.config.js`:
0 commit comments