aboutsummaryrefslogtreecommitdiffstats
path: root/uidev/webpack.config.js
blob: 74ea870efe3f63581e35493b086790bb600cd561 (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
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,
  },
};