modified lib-jitsi-meet dev repo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

webpack.config.js 1.2KB

12345678910111213141516171819202122232425262728293031323334353637
  1. const path = require('path');
  2. const process = require('process');
  3. const sharedConfig = require('./webpack-shared-config');
  4. module.exports = (_env, argv) => {
  5. // Despite what whe docs say calling webpack with no arguments results in mode not being set.
  6. const mode = typeof argv.mode === 'undefined' ? 'production' : argv.mode;
  7. const config
  8. = sharedConfig(mode === 'production' /* minimize */, Boolean(process.env.ANALYZE_BUNDLE) /* analyzeBundle */);
  9. return [
  10. Object.assign({}, config, {
  11. entry: {
  12. 'lib-jitsi-meet': './index.js'
  13. },
  14. output: Object.assign({}, config.output, {
  15. library: 'JitsiMeetJS',
  16. libraryTarget: 'umd',
  17. path: path.join(process.cwd(), 'dist', 'umd')
  18. })
  19. }),
  20. {
  21. entry: {
  22. worker: './modules/e2ee/Worker.js'
  23. },
  24. mode,
  25. output: {
  26. filename: 'lib-jitsi-meet.e2ee-worker.js',
  27. path: path.join(process.cwd(), 'dist', 'umd')
  28. },
  29. optimization: {
  30. minimize: false
  31. }
  32. }
  33. ];
  34. };