Skip to content

Commit a8b48e6

Browse files
committed
reuse plotly.js webpack config
1 parent 07619ee commit a8b48e6

File tree

1 file changed

+3
-33
lines changed

1 file changed

+3
-33
lines changed

stackgl_modules/webpack.config.js

+3-33
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
var path = require('path');
22

3+
var plotlyjsConfig = require('../webpack.config');
4+
35
module.exports = {
46
target: ['web', 'es5'],
57
entry: './main.js',
@@ -14,37 +16,5 @@ module.exports = {
1416
optimization: {
1517
minimize: false
1618
},
17-
module: {
18-
rules: [{
19-
test: /\.js$/,
20-
exclude: /node_modules/,
21-
use: {
22-
loader: 'babel-loader'
23-
}
24-
}, {
25-
test: /\.js$/,
26-
include: /node_modules[\\\/]buffer[\\\/]/,
27-
use: {
28-
loader: 'babel-loader',
29-
options: {
30-
babelrc: false,
31-
configFile: false,
32-
presets: [
33-
'@babel/preset-env'
34-
]
35-
}
36-
},
37-
}, {
38-
test: /\.glsl$/,
39-
include: /node_modules/,
40-
use: {
41-
loader: 'raw-loader'
42-
}
43-
}, {
44-
test: /\.(js|glsl)$/,
45-
use: [
46-
'ify-loader'
47-
]
48-
}]
49-
}
19+
module: plotlyjsConfig.module
5020
};

0 commit comments

Comments
 (0)