webpack.js 443 B

123456789101112131415
  1. const path = require('path');
  2. module.exports = {
  3. entry: {
  4. 'additionalScripts': path.join(__dirname, 'src', 'additionalScripts.js'),
  5. 'files_sharing': path.join(__dirname, 'src', 'files_sharing.js'),
  6. 'collaboration': path.join(__dirname, 'src', 'collaborationresourceshandler.js'),
  7. },
  8. output: {
  9. path: path.resolve(__dirname, './js/dist/'),
  10. publicPath: '/js/',
  11. filename: '[name].js',
  12. chunkFilename: 'files_sharing.[id].js'
  13. }
  14. }