webpack.js 502 B

12345678910111213141516
  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?v=[chunkhash]',
  13. jsonpFunction: 'webpackJsonpFilesSharing'
  14. }
  15. }