blob: 7d17f45bde5886fb869891f29781bf22efd0c35d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
module.exports = {
// Currently we need to add '.ts' to the resolve.extensions array.
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx']
},
// Source maps support ('inline-source-map' also works)
devtool: 'source-map',
mode: 'development',
// Add the loader for .ts files.
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'ts-loader'
}
]
},
devServer: {
static: './dist',
}
};
|