aboutsummaryrefslogtreecommitdiffstats
path: root/uidev/webpack.config.js
blob: faabac784a6dd37cb2f8219e2691da5e33c29216 (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
25
26
27
28
29
30
31
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
  entry: './src/index.tsx',
  module: {
    rules: [
      {
        test: /\.tsx?$/,
        use: 'ts-loader',
        exclude: /node_modules/,
      },
    ],
  },
  resolve: {
    extensions: ['.tsx', '.ts', '.js'],
    alias: {
      react: path.resolve('../node_modules/react'),
    },
  },
  mode: 'none',
  plugins: [
    new HtmlWebpackPlugin({
      template: path.join('src', 'app.html'),
    }),
  ],
  devServer: {
    inline: true,
    port: 8008,
  },
};