1 | const path = require('path');
|
2 |
|
3 | module.exports = {
|
4 | resolve: {
|
5 |
|
6 | modules: [path.resolve(__dirname, '../src'), 'node_modules'],
|
7 | },
|
8 | module: {
|
9 | rules: [
|
10 | {
|
11 | test: /\.tsx?$/,
|
12 | use: 'ts-loader',
|
13 | exclude: /node_modules/,
|
14 | },
|
15 | {
|
16 | test: /\.(woff|woff2)$/,
|
17 | use: 'file-loader',
|
18 | exclude: /node_modules/,
|
19 | },
|
20 | {
|
21 | test: /\.css$/,
|
22 | use: ['style-loader', 'css-loader'],
|
23 | },
|
24 | ],
|
25 | },
|
26 | resolve: {
|
27 |
|
28 | modules: [path.resolve(__dirname, '../src'), 'node_modules'],
|
29 | extensions: ['.js', '.ts', '.tsx'],
|
30 | },
|
31 | };
|