1
0

webpack.js 647 B

123456789101112131415161718192021
  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. },
  9. output: {
  10. path: path.resolve(__dirname, './js'),
  11. publicPath: '/js/',
  12. filename: 'vue-[name].js?v=[chunkhash]',
  13. jsonpFunction: 'webpackJsonpSettings'
  14. },
  15. optimization: {
  16. splitChunks: {
  17. automaticNameDelimiter: '-',
  18. }
  19. }
  20. }