-
Notifications
You must be signed in to change notification settings - Fork 10
/
webpack.config.test.js
46 lines (45 loc) · 1.33 KB
/
webpack.config.test.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
var path = require('path')
var OpenBrowserPlugin = require('open-browser-webpack-plugin')
module.exports = {
cache: true,
devtool: 'cheap-module-eval-source-map',
entry: {
Index: [
'webpack-dev-server/client?http://localhost:3001',
'webpack/hot/dev-server',
'mocha!./test.js'
]
},
output: {
path: path.join(__dirname, 'test'),
filename: 'test.js'
},
resolve: {
alias: {
'ta-lib.aroon': path.join(__dirname, './ta-lib.aroon/'),
'ta-lib.ema': path.join(__dirname, './ta-lib.ema/'),
'ta-lib.max': path.join(__dirname, './ta-lib.max/'),
'ta-lib.min': path.join(__dirname, './ta-lib.min/'),
'ta-lib.sma': path.join(__dirname, './ta-lib.sma/'),
'ta-lib.sum': path.join(__dirname, './ta-lib.sum/'),
'ta-lib.minus_dm': path.join(__dirname, './ta-lib.minus_dm/'),
'ta-lib.average': path.join(__dirname, './ta-lib.average/'),
'ta-lib.stddev': path.join(__dirname, './ta-lib.stddev/'),
'ta-lib.eratio': path.join(__dirname, './ta-lib.eratio/'),
'ta-lib.trange': path.join(__dirname, './ta-lib.trange/')
},
extensions: ["", ".js"]
},
module: {
loaders: [
{
test: /\.js$/, exclude: /node_modules/, loaders: ['babel']
}
]
},
plugins: [
new OpenBrowserPlugin({
url: 'http://localhost:3002/test'
})
]
}