forked from britecharts/britecharts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.constants.js
46 lines (43 loc) · 1.78 KB
/
webpack.constants.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
const path = require('path');
exports.CHARTS = {
bar: './src/charts/bar.js',
brush: './src/charts/brush.js',
bullet: './src/charts/bullet.js',
donut: './src/charts/donut.js',
groupedBar: './src/charts/grouped-bar.js',
heatmap: './src/charts/heatmap.js',
legend: './src/charts/legend.js',
line: './src/charts/line.js',
miniTooltip: './src/charts/mini-tooltip.js',
scatterPlot: './src/charts/scatter-plot.js',
sparkline: './src/charts/sparkline.js',
stackedArea: './src/charts/stacked-area.js',
stackedBar: './src/charts/stacked-bar.js',
step: './src/charts/step.js',
tooltip: './src/charts/tooltip.js',
loading: ['./src/charts/helpers/load.js'],
// hack to make webpack use colors as an entry point while its also a dependency of the charts above
colors: ['./src/charts/helpers/color.js'],
};
exports.DEMOS = {
'demo-bar': './demos/src/demo-bar.js',
'demo-bullet': './demos/src/demo-bullet.js',
'demo-brush': './demos/src/demo-brush.js',
'demo-donut': './demos/src/demo-donut.js',
'demo-color': './demos/src/demo-color.js',
'demo-grouped-bar': './demos/src/demo-grouped-bar.js',
'demo-heatmap': './demos/src/demo-heatmap.js',
'demo-kitchen-sink': './demos/src/demo-kitchen-sink.js',
'demo-legend': './demos/src/demo-legend.js',
'demo-line': './demos/src/demo-line.js',
'demo-scatter-plot': './demos/src/demo-scatter-plot.js',
'demo-stacked-area': './demos/src/demo-stacked-area.js',
'demo-stacked-bar': './demos/src/demo-stacked-bar.js',
'demo-step': './demos/src/demo-step.js',
'demo-sparkline': './demos/src/demo-sparkline.js',
};
exports.PATHS = {
vendor: path.resolve('./node_modules'),
bundleIndex: path.resolve('./src/bundle.js'),
charts: path.resolve('./src/charts'),
};