enc-webrtc
Version:
An utility which helps using web rtc.
29 lines (28 loc) • 651 B
JavaScript
const path = require('path');
const CleanWebpackPlugin = require('clean-webpack-plugin');
module.exports = {
mode: 'production',
entry: './src/index.ts',
plugins: [
new CleanWebpackPlugin()
],
output: {
filename: 'index.js',
path: path.resolve(__dirname, 'dist'),
libraryTarget: 'commonjs'
},
module: {
rules: [
{
test: /\.ts$/,
use: 'ts-loader',
exclude: [
/node_modules/
],
}
]
},
resolve: {
extensions: ['.ts']
}
};