diff options
Diffstat (limited to 'uidev/webpack.config.js')
-rw-r--r-- | uidev/webpack.config.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/uidev/webpack.config.js b/uidev/webpack.config.js new file mode 100644 index 000000000..8c4a4ade9 --- /dev/null +++ b/uidev/webpack.config.js | |||
@@ -0,0 +1,22 @@ | |||
1 | const path = require('path'); | ||
2 | const HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
3 | |||
4 | module.exports = { | ||
5 | entry: './src/index.tsx', | ||
6 | module: { | ||
7 | rules: [{ | ||
8 | test: /\.tsx?$/, | ||
9 | use: 'ts-loader', | ||
10 | exclude: /node_modules/, | ||
11 | }], | ||
12 | }, | ||
13 | resolve: { | ||
14 | extensions: ['.tsx', '.ts', '.js'], | ||
15 | }, | ||
16 | mode: 'none', | ||
17 | plugins: [ | ||
18 | new HtmlWebpackPlugin({ | ||
19 | template: path.join('src', 'app.html'), | ||
20 | }), | ||
21 | ], | ||
22 | }; | ||