forked from tableau/webdataconnector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
41 lines (36 loc) · 1.07 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
var path = require("path");
var webpack = require("webpack");
module.exports = {
entry: [path.resolve("./Simulator/components/App")],
output: {
path: path.resolve(__dirname, "Simulator"),
filename: "wdc-simulator.js"
},
devtool: 'eval',
module: {
loaders: [
{
test: [/\.js$/, /\.jsx$/],
include: [
path.resolve(__dirname, "Simulator/components"),
path.resolve(__dirname, "Simulator/utils"),
path.resolve(__dirname, "Simulator/actions"),
path.resolve(__dirname, "Simulator/reducers"),
path.resolve(__dirname, "Simulator/store")
],
loader: 'babel-loader'
}
]
},
resolve: {
root: path.join(__dirname),
modulesDirectories: [
'node_modules',
'Simulator/components',
'Simulator/reducers',
'Simulator/store',
'Simulator/utils'
],
extensions: ['', '.js', '.jsx']
}
}