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.js 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. const path = require('path')
  2. const webpack = require('webpack')
  3. module.exports = [
  4. {
  5. entry: {
  6. login: path.join(__dirname, 'src/login.js'),
  7. main: path.join(__dirname, 'src/main.js'),
  8. maintenance: path.join(__dirname, 'src/maintenance.js'),
  9. recommendedapps: path.join(__dirname, 'src/recommendedapps.js'),
  10. install: path.join(__dirname, 'src/install.js'),
  11. files_client: path.join(__dirname, 'src/files/client.js'),
  12. files_fileinfo: path.join(__dirname, 'src/files/fileinfo.js'),
  13. files_iedavclient: path.join(__dirname, 'src/files/iedavclient.js')
  14. },
  15. output: {
  16. filename: '[name].js',
  17. path: path.resolve(__dirname, 'js/dist'),
  18. jsonpFunction: 'webpackJsonpCore'
  19. },
  20. module: {
  21. rules: [
  22. {
  23. test: /davclient/,
  24. use: 'exports-loader?dav'
  25. }
  26. ]
  27. },
  28. plugins: [
  29. new webpack.ProvidePlugin({
  30. '_': "underscore",
  31. $: "jquery",
  32. jQuery: "jquery"
  33. })
  34. ]
  35. },
  36. {
  37. entry: {
  38. systemtags: path.resolve(__dirname, 'js/systemtags/merged-systemtags.js')
  39. },
  40. output: {
  41. filename: '[name].js',
  42. path: path.resolve(__dirname, 'js/dist')
  43. }
  44. }
  45. ]