-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
60 lines (51 loc) · 1.37 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
var webpack = require('webpack');
var path = require('path');
module.exports = {
context: __dirname,
entry: {
'patternfly': './src/patternfly',
'pf-alert': './src/pf-alert/index',
'pf-i18n': './src/pf-i18n/index',
'pf-hello': './src/pf-hello/index',
'pf-list-view': './src/pf-list-view/index',
'pf-template-repeater': './src/pf-template-repeater/index',
'pf-template': './src/pf-template/index',
'pf-tabs': './src/pf-tabs/index',
'pf-utilization-bar-chart': './src/pf-utilization-bar-chart/index',
'pf-utils': './src/pf-utils/index'
},
resolve: {
root: [
path.join(__dirname, "src/pf-alert"),
path.join(__dirname, "src/pf-hello"),
path.join(__dirname, "src/pf-i18n"),
path.join(__dirname, "src/pf-list-view"),
path.join(__dirname, "src/pf-template-repeater"),
path.join(__dirname, "src/pf-template"),
path.join(__dirname, "src/pf-tabs"),
path.join(__dirname, "src/pf-utilization-bar-chart"),
path.join(__dirname, "src/pf-utils")
]
},
output: {
path: path.join(__dirname, './dist/js/'),
publicPath: './',
filename: '[name].js'
},
externals: {
},
plugins: [
],
module: {
loaders: [
//js loader
{
loader: "babel",
// Options to configure babel with
query: {
presets: ['es2015']
}
}
]
}
};