aboutsummaryrefslogtreecommitdiff
path: root/webpack.prod.js
blob: fc098bf34c527d89a96bf005877393736d114946 (plain)
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
const path = require('path');

module.exports = {
  mode: "production",
  entry: './source/client/index.ts',
  module: {
    rules: [
      {
        test: /\.tsx?$/,
        loader: 'ts-loader',
        exclude: /node_modules/,
        options: {
          configFile: "tsconfig.client.json"
        }
      }
    ],
  },
  resolve: {
    modules: ['source','node_modules'],
    extensions: ['.tsx', '.ts', '.js', '.json'],
  },
  output: {
    filename: 'bundle.js',
    path: path.resolve(__dirname, 'public/dist'),
    pathinfo: false
  },
};