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 862B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. },
  10. output: {
  11. filename: '[name].js',
  12. path: path.resolve(__dirname, 'js/dist'),
  13. jsonpFunction: 'webpackJsonpCore'
  14. },
  15. module: {
  16. rules: [
  17. {
  18. test: /davclient/,
  19. use: 'exports-loader?dav'
  20. }
  21. ]
  22. },
  23. plugins: [
  24. new webpack.ProvidePlugin({
  25. '_': "underscore",
  26. $: "jquery",
  27. jQuery: "jquery"
  28. })
  29. ]
  30. },
  31. {
  32. entry: {
  33. share_backend: path.resolve(__dirname, 'js/merged-share-backend.js'),
  34. systemtags: path.resolve(__dirname, 'js/systemtags/merged-systemtags.js')
  35. },
  36. output: {
  37. filename: '[name].js',
  38. path: path.resolve(__dirname, 'js/dist')
  39. }
  40. }
  41. ]