forked from ghidoz/angular2-jsonapi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.test.conf.js
38 lines (37 loc) · 902 Bytes
/
webpack.test.conf.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
'use strict';
module.exports = {
entry: {
main: './src/index.ts'
},
resolve: {
extensions: [ '.ts', '.js', '.json']
},
output: {
path: './dist',
filename: '[name].bundle.js'
},
devtool: 'inline-source-map',
module: {
loaders: [
{
test: /\.ts$/,
loader: 'ts-loader',
exclude: [/node_modules/]
},
{
enforce: 'post',
test: /\.(js|ts)$/,
loader: 'sourcemap-istanbul-instrumenter-loader',
exclude: [
/node_modules/,
/test/,
/\.(e2e|spec)\.ts$/
],
query: {
'force-sourcemap': true
}
}
]
},
stats: { colors: true, reasons: true }
};