-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwebpack.base.ts
More file actions
43 lines (38 loc) · 919 Bytes
/
Copy pathwebpack.base.ts
File metadata and controls
43 lines (38 loc) · 919 Bytes
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
import {CheckerPlugin} from 'awesome-typescript-loader';
import {join, resolve} from 'path';
export const baseConfig = {
module: {
rules: [
{
test: /\.tsx?$/,
enforce: 'pre',
loader: 'tslint-loader',
options: {
fix: true
}
},
{
test: /\.tsx?$/,
loaders: ['react-hot-loader/webpack', 'awesome-typescript-loader?useBabel=true&useWebpackText=true&useCache=true'],
include: [resolve(__dirname, 'app')]
},
{
test: /\.json$/,
loader: 'json-loader'
}
]
},
output: {
path: join(__dirname, 'dist'),
filename: 'bundle.js',
libraryTarget: 'umd'
},
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx', '.css'],
modules: ['app', 'node_modules', 'webpack', 'browser', 'web', 'browserify', 'main']
},
plugins: [
new CheckerPlugin()
],
externals: []
};