webpack.js 782 B

1234567891011121314151617181920212223
  1. const path = require('path')
  2. module.exports = {
  3. entry: {
  4. 'settings-apps-users-management': path.join(__dirname, 'src', 'main-apps-users-management'),
  5. 'settings-admin-security': path.join(__dirname, 'src', 'main-admin-security'),
  6. 'settings-personal-security': path.join(__dirname, 'src', 'main-personal-security'),
  7. 'settings-personal-webauthn': path.join(__dirname, 'src', 'main-personal-webauth'),
  8. 'settings-nextcloud-pdf': path.join(__dirname, 'src', 'main-nextcloud-pdf'),
  9. },
  10. output: {
  11. path: path.resolve(__dirname, './js'),
  12. publicPath: '/js/',
  13. filename: 'vue-[name].js?v=[contenthash]',
  14. chunkFilename: 'vue-[name].js?v=[contenthash]',
  15. jsonpFunction: 'webpackJsonpSettings',
  16. },
  17. optimization: {
  18. splitChunks: {
  19. automaticNameDelimiter: '-',
  20. },
  21. },
  22. }