summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/webpack.config.js
blob: f1b524679cdf36dd8a27ad243b585c784b56d747 (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');

const outputPath = path.resolve(__dirname, 'dist');

module.exports = {
  entry: './src/index.ts',
  mode: 'production',
  devtool: 'source-map',
  module: {
    rules: [
      {
        test: /.ts$/,
        use: 'ts-loader',
        exclude: /node_modules/,
      }
    ],
  },
  resolve: {
    extensions: ['.ts', '.js'],
  },
  output: {
    path: outputPath,
    filename: 'webauthntine-browser.min.js',
    library: 'WebAuthntineBrowser',
    libraryTarget: 'umd',
  },
};