webpack.js 705 B

12345678910111213141516171819
  1. const path = require('path');
  2. module.exports = {
  3. entry: {
  4. 'additionalScripts': path.join(__dirname, 'src', 'additionalScripts.js'),
  5. 'collaboration': path.join(__dirname, 'src', 'collaborationresourceshandler.js'),
  6. 'files_sharing_tab': path.join(__dirname, 'src', 'files_sharing_tab.js'),
  7. 'files_sharing': path.join(__dirname, 'src', 'files_sharing.js'),
  8. 'main': path.join(__dirname, 'src', 'index.js'),
  9. 'personal-settings': path.join(__dirname, 'src', 'personal-settings.js'),
  10. },
  11. output: {
  12. path: path.resolve(__dirname, './js/dist/'),
  13. publicPath: '/js/',
  14. filename: '[name].js',
  15. chunkFilename: 'files_sharing.[id].js?v=[chunkhash]',
  16. jsonpFunction: 'webpackJsonpFilesSharing'
  17. }
  18. }