webpack项目录制音频视频
其他的解决方案: 1. Html5 音视频 2.WebRTC 初始化项目目录: mkdir webpack-test cd webpack-test 安装相关依赖: npm install -D webpack webpack-dev-server webpack-cli css-loader style-loader npm install videojs-record 1. 创建webpack的配置文件webpack.config.js const path = require('path'); const webpack = require('webpack'); const basePath = path.resolve(__dirname); module.exports = { context: path.join(basePath, 'src'), entry: { app: './app.js' }, output: { path: path.join(basePath, 'dist'), filename: '[name].bundle.js', publicPath: '/dist' }, devServer: { contentBase: basePath, watchContentBase: true }, resolve: { alias: {