entry.config.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. module.exports = {
  2. prod: {
  3. //user
  4. 'user/index': './js/user/index.js',
  5. 'user/login': './js/user/login.js',
  6. 'user/signIn': './js/user/signIn.js',
  7. 'user/account/index': './js/user/account/index.js',
  8. 'user/account/evaluateInfo': './js/user/account/assessment.js',
  9. //admin
  10. 'admin/login': './js/user/adminLogin.js',
  11. 'admin/index': './js/admin/index.js',
  12. },
  13. watch: {
  14. 'user/index': ['webpack-dev-server/client?http://192.168.0.190:80', // WebpackDevServer host and port
  15. 'webpack/hot/only-dev-server',
  16. './js/user/index.js'
  17. ],
  18. 'user/login': ['webpack-dev-server/client?http://192.168.0.190:80', // WebpackDevServer host and port
  19. 'webpack/hot/only-dev-server',
  20. './js/user/login.js'
  21. ],
  22. 'user/signIn': ['webpack-dev-server/client?http://192.168.0.190:80', // WebpackDevServer host and port
  23. 'webpack/hot/only-dev-server',
  24. './js/user/signIn.js'
  25. ],
  26. 'user/account/index': ['webpack-dev-server/client?http://192.168.0.190:80', // WebpackDevServer host and port
  27. 'webpack/hot/only-dev-server',
  28. './js/user/account/index.js'
  29. ],
  30. 'user/account/evaluateInfo': ['webpack-dev-server/client?http://192.168.0.190:80', // WebpackDevServer host and port
  31. 'webpack/hot/only-dev-server',
  32. './js/user/account/assessment.js'
  33. ],
  34. //admin
  35. 'admin/login': ['webpack-dev-server/client?http://192.168.0.190:80', // WebpackDevServer host and port
  36. 'webpack/hot/only-dev-server',
  37. './js/user/adminLogin.js'
  38. ],
  39. 'admin/index': ['webpack-dev-server/client?http://192.168.0.190:80', // WebpackDevServer host and port
  40. 'webpack/hot/only-dev-server',
  41. './js/admin/index.js'
  42. ]
  43. }
  44. }