Skip to content

Commit 2d9f0e8

Browse files
author
Stefano Baggio
committed
1 parent e632674 commit 2d9f0e8

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/my-plotly.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* To change this license header, choose License Headers in Project Properties.
3+
* To change this template file, choose Tools | Templates
4+
* and open the template in the editor.
5+
*/
6+
var Plotly = require('plotly.js/lib/core');
7+
8+
// Load only scatter
9+
Plotly.register([
10+
require('plotly.js/lib/scatter')
11+
]);
12+
13+
module.exports = Plotly;
14+

webpack.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ module.exports = {
1111
filename: 'my-plotly.js'
1212
},
1313
module: {
14-
loaders: []
14+
loaders: [
15+
{test: /node_modules/, loader: 'ify'}
16+
]
1517
}
1618
};

0 commit comments

Comments
 (0)