UNPKG

web-speech-profanity

Version:

Web Speech API adapter to use Cognitive Services Speech Services for both speech-to-text and text-to-speech service.

20 lines (18 loc) 497 B
const { StatsWriterPlugin } = require('webpack-stats-plugin'); module.exports = { entry: { 'web-speech-cognitive-services.production.min': './lib/index.js' }, mode: 'production', output: { library: 'WebSpeechCognitiveServices', libraryTarget: 'umd' }, plugins: [ new StatsWriterPlugin({ filename: 'stats.json', transform: (_, opts) => JSON.stringify(opts.compiler.getStats().toJson({ chunkModules: true }), null, 2) }) ], target: ['web', 'es5'] };