-
-
Notifications
You must be signed in to change notification settings - Fork 81
/
webpack.config.js
42 lines (40 loc) · 993 Bytes
/
webpack.config.js
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
30
31
32
33
34
35
36
37
38
39
40
41
const path = require('path');
const webpack = require('webpack');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
module.exports = {
plugins: [
new webpack.ProgressPlugin(),
new CleanWebpackPlugin(),
],
entry: {
'video-stream-merger': './src/index.ts',
},
output: {
filename: '[name].js',
path: path.resolve(process.cwd(), 'dist'),
library: 'video-stream-merger',
libraryTarget: 'umd',
globalObject: 'this'
},
//devtool: 'inline-source-map',
devtool: false,
mode: 'production',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'awesome-typescript-loader',
exclude: /node_modules/
}
]
},
resolve: {
alias: {},
extensions: ['.tsx', '.ts', '.js']
},
performance: {
hints: false,
maxEntrypointSize: 512000,
maxAssetSize: 512000
}
};