forked from react-d3/react-d3-basic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
61 lines (54 loc) · 1.69 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
'use strict';
var path = require('path'),
webpack = require('webpack'),
nodeModulesPath = path.join(__dirname, 'node_modules');
var js_root = './example/src';
var js_dist = path.join(__dirname, './example/dist/origin');
module.exports = [{
name: 'chartes5Component',
entry: {
line: js_root + '/line.jsx',
line_multi: js_root + '/line_multi.jsx',
line_animate_multi: js_root + '/line_animate_multi.jsx',
line_multi_negative: js_root + '/line_multi_negative.jsx',
scatter: js_root + '/scatter.jsx',
area: js_root + '/area.jsx',
area_negative: js_root + '/area_negative.jsx',
area_stack: js_root + '/area_stack.jsx',
area_stack_negative: js_root + '/area_stack_negative.jsx',
bar: js_root + '/bar.jsx',
bar_horizontal: js_root + '/bar_horizontal.jsx',
bar_negative: js_root + '/bar_negative.jsx',
bar_group: js_root + '/bar_group.jsx',
bar_group_horizontal: js_root + '/bar_group_horizontal.jsx',
bar_group_negative: js_root + '/bar_group_negative.jsx',
bar_stack: js_root + '/bar_stack.jsx',
bar_stack_horizontal: js_root + '/bar_stack_horizontal.jsx',
bar_stack_negative: js_root + '/bar_stack_negative.jsx',
pie: js_root + '/pie.jsx',
donut: js_root + '/donut.jsx'
},
output: {
path: js_dist,
filename: '[name].js'
},
module: {
loaders: [
{
test: [/\.jsx$/],
loaders: ["jsx-loader?insertPragma=React.DOM&harmony"],
},
{
test: /\.css$/,
loader: 'style-loader!css-loader'
},
{
test: /\.json$/,
loader: "json-loader"
}
],
},
resolve: {
extensions: ['', '.webpack.js', '.web.js', '.js', '.jsx']
}
}];