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.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. const path = require('path')
  2. const { VueLoaderPlugin } = require('vue-loader');
  3. module.exports = {
  4. entry: {
  5. 'settings-apps-users-management': './src/main-apps-users-management',
  6. 'settings-admin-security': './src/main-admin-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. module: {
  19. rules: [
  20. {
  21. test: /\.css$/,
  22. use: [
  23. 'vue-style-loader', 'css-loader'
  24. ],
  25. },
  26. {
  27. test: /\.scss$/,
  28. use: [
  29. 'vue-style-loader', 'css-loader', 'sass-loader'
  30. ],
  31. },
  32. {
  33. test: /\.vue$/,
  34. loader: 'vue-loader',
  35. options: {
  36. hotReload: false // disables Hot Reload
  37. }
  38. },
  39. {
  40. test: /\.js$/,
  41. loader: 'babel-loader',
  42. exclude: /node_modules/
  43. },
  44. ]
  45. },
  46. plugins: [
  47. new VueLoaderPlugin()
  48. ],
  49. resolve: {
  50. extensions: ['*', '.js', '.vue', '.json']
  51. }
  52. }