entry.config.js 772 B

123456789101112131415161718192021222324252627
  1. module.exports = {
  2. prod: {
  3. //admin
  4. "admin/index": "./js/admin/index.js",
  5. "admin/login": "./js/admin/login.js",
  6. "admin/userManage": "./js/admin/userManage.js",
  7. },
  8. watch: {
  9. //admin
  10. "admin/index": [
  11. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  12. "webpack/hot/only-dev-server",
  13. "./js/admin/index.js",
  14. ],
  15. "admin/login": [
  16. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  17. "webpack/hot/only-dev-server",
  18. "./js/admin/login.js",
  19. ],
  20. "admin/userManage": [
  21. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  22. "webpack/hot/only-dev-server",
  23. "./js/admin/userManage.js",
  24. ],
  25. },
  26. };