aboutsummaryrefslogtreecommitdiffstats
path: root/uidev/webpack.config.js
blob: 8c4a4ade92f6e9e47dc6080644dac4b3b8eafcb9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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'],
  },
  mode: 'none',
  plugins: [
    new HtmlWebpackPlugin({
      template: path.join('src', 'app.html'),
    }),
  ],
};