webpack.js 503 B

12345678910111213141516171819
  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: '/',
  11. filename: 'vue-[name].js'
  12. },
  13. optimization: {
  14. splitChunks: {
  15. automaticNameDelimiter: '-',
  16. }
  17. }
  18. }