-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.config.js
36 lines (35 loc) · 1.15 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
var webpack = require('webpack');
module.exports = {
entry: './src/app.ts',
target: 'node',
devtool: "cheap-sourcemap",
output: {
path: './build',
filename: 'bundle.js'
},
resolve: {
extensions: ['', '.webpack.js', '.web.js', '.ts', '.js', '.node', '.json']
},
module: {
exprContextRegExp: /$^/,
exprContextCritical: false,
noParse: /node_modules\/json-schema\/lib\/validate\.js/,
loaders: [
{
test: /\.ts$/,
loader: 'ts-loader',
query: {
'ignoreDiagnostics': [
2403, // 2403 -> Subsequent variable declarations
2300, // 2300 -> Duplicate identifier
2374, // 2374 -> Duplicate number index signature
2375, // 2375 -> Duplicate string index signature
2502 // 2502 -> Referenced directly or indirectly
]
}
},
{test: /\.node$/, loader: 'node-loader'},
{test: /\.json(\?.*)?$/, loader: "json-loader"}
]
}
};