@comsultia/speech2text
Version:
Google Speech to Text plugin using websockets to communicate with backend
30 lines (28 loc) • 512 B
JavaScript
;
const path = require('path');
module.exports = {
entry: './src/index.ts',
devtool: 'source-map',
node: {
fs: 'empty'
},
module: {
rules: [
{
test: /\.tsx?$/,
exclude: /node_modules/,
use: 'babel-loader'
}
]
},
resolve: {
extensions: [ '.tsx', '.ts', '.js' ]
},
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
libraryTarget: 'umd',
library: 'speech2text',
umdNamedDefine: true
}
};