forked from cs01/gdbgui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
43 lines (42 loc) · 912 Bytes
/
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
const path = require('path');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
module.exports = {
entry: './gdbgui/src/js/gdbgui.jsx',
devtool: 'source-map',
output: {
path: path.resolve(__dirname, 'gdbgui/static/js/'),
filename: 'build.js'
},
module: {
rules: [{
test: /\.(j|t)sx?$/,
use: [
{
loader: 'ts-loader',
options: {
experimentalFileCaching: true,
experimentalWatchApi: true,
transpileOnly: true
}
},
{
loader: 'tslint-loader',
options: {
fix: true,
typeCheck: true
}
}
],
exclude: /node_modules/
}]
},
plugins: [
new ForkTsCheckerWebpackPlugin({
tslint: true,
tslintAutoFix: true
})
],
resolve: {
extensions: ['.js', '.ts', '.tsx']
}
}