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',
},
};
|