1
0

webpack.js 561 B

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