aboutsummaryrefslogtreecommitdiffstats
path: root/uidev/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'uidev/webpack.config.js')
-rw-r--r--uidev/webpack.config.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/uidev/webpack.config.js b/uidev/webpack.config.js
new file mode 100644
index 000000000..74ea870ef
--- /dev/null
+++ b/uidev/webpack.config.js
@@ -0,0 +1,29 @@
1const path = require('path');
2const HtmlWebpackPlugin = require('html-webpack-plugin');
3
4module.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 alias: {
16 react: path.resolve('../node_modules/react'),
17 },
18 },
19 mode: 'none',
20 plugins: [
21 new HtmlWebpackPlugin({
22 template: path.join('src', 'app.html'),
23 }),
24 ],
25 devServer: {
26 inline: true,
27 port: 8008,
28 },
29};