entry.config.js 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. module.exports = {
  2. prod: {
  3. 'index': './src/js/index.js',
  4. 'toPayment': './src/js/toPayment.js',
  5. 'service': './src/js/service.js',
  6. 'register': './src/js/register.js',
  7. 'member': './src/js/member.js',
  8. 'technologyTrading': './src/js/technologyTrading.js',
  9. 'thinkTank': './src/js/thinkTank.js',
  10. 'financialIndex': './src/js/financialIndex.js',
  11. 'technologyTrading/achievement': './src/js/technologyTrading/achievement.js',
  12. 'technologyTrading/demand': './src/js/technologyTrading/demand.js',
  13. 'technologyTrading/achievementDetail': './src/js/technologyTrading/achievementDetail.js',
  14. 'technologyTrading/demandDetail': './src/js/technologyTrading/demandDetail.js',
  15. 'technologyTrading/assessMent': './src/js/technologyTrading/assessMent.js',
  16. 'technologyTrading/achievementOrder': './src/js/technologyTrading/achievementOrder.js',
  17. 'thinkTank/policyDetail': './src/js/thinkTank/policyDetail.js',
  18. 'thinkTank/policyList': './src/js/thinkTank/policyList.js',
  19. 'thinkTank/thinkerDetail': './src/js/thinkTank/thinkerDetail.js',
  20. 'financial/investmentInstitution': './src/js/financial/investmentInstitution.js',
  21. 'financial/investmentDetail': './src/js/financial/investmentDetail.js',
  22. 'service/propertyRight': './src/js/service/propertyRight.js',
  23. 'service/highTechCognizance': './src/js/service/highTechCognizance.js',
  24. //newsApp
  25. 'news/newsDetailApp': './src/js/news/newsDetailApp.js'
  26. },
  27. watch: {
  28. 'index': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  29. 'webpack/hot/only-dev-server',
  30. './src/js/index.js'
  31. ],
  32. 'toPayment': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  33. 'webpack/hot/only-dev-server',
  34. './src/js/toPayment.js'
  35. ],
  36. 'service': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  37. 'webpack/hot/only-dev-server',
  38. './src/js/service.js'
  39. ],
  40. 'register': ['webpack-dev-server/client?http://127.0.0.1:80',
  41. 'webpack/hot/only-dev-server',
  42. './src/js/register.js'
  43. ],
  44. 'member': ['webpack-dev-server/client?http://127.0.0.1:80',
  45. 'webpack/hot/only-dev-server',
  46. './src/js/member.js'
  47. ],
  48. 'technologyTrading': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  49. 'webpack/hot/only-dev-server',
  50. './src/js/technologyTrading.js'
  51. ],
  52. 'thinkTank': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  53. 'webpack/hot/only-dev-server',
  54. './src/js/thinkTank.js'
  55. ],
  56. 'financialIndex': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  57. 'webpack/hot/only-dev-server',
  58. './src/js/financialIndex.js'
  59. ],
  60. 'technologyTrading/achievement': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  61. 'webpack/hot/only-dev-server',
  62. './src/js/technologyTrading/achievement.js'
  63. ],
  64. 'technologyTrading/demand': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  65. 'webpack/hot/only-dev-server',
  66. './src/js/technologyTrading/demand.js'
  67. ],
  68. 'technologyTrading/achievementDetail': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  69. 'webpack/hot/only-dev-server',
  70. './src/js/technologyTrading/achievementDetail.js'
  71. ],
  72. 'technologyTrading/assessMent': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  73. 'webpack/hot/only-dev-server',
  74. './src/js/technologyTrading/assessMent.js'
  75. 'technologyTrading/achievementOrder': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  76. 'webpack/hot/only-dev-server',
  77. './src/js/technologyTrading/achievementOrder.js'
  78. ],
  79. 'technologyTrading/demandDetail': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  80. 'webpack/hot/only-dev-server',
  81. './src/js/technologyTrading/demandDetail.js'
  82. ],
  83. 'thinkTank/policyDetail': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  84. 'webpack/hot/only-dev-server',
  85. './src/js/thinkTank/policyDetail.js'
  86. ],
  87. 'thinkTank/thinkerDetail': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  88. 'webpack/hot/only-dev-server',
  89. './src/js/thinkTank/thinkerDetail.js'
  90. ],
  91. 'thinkTank/policyList': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  92. 'webpack/hot/only-dev-server',
  93. './src/js/thinkTank/policyList.js'
  94. ],
  95. 'financial/investmentInstitution': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  96. 'webpack/hot/only-dev-server',
  97. './src/js/financial/investmentInstitution.js'
  98. ],
  99. 'financial/investmentDetail': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  100. 'webpack/hot/only-dev-server',
  101. './src/js/financial/investmentDetail.js'
  102. ],
  103. 'service/highTechCognizance': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  104. 'webpack/hot/only-dev-server',
  105. './src/js/service/highTechCognizance.js'
  106. ],
  107. 'service/propertyRight': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  108. 'webpack/hot/only-dev-server',
  109. './src/js/service/propertyRight.js'
  110. ],
  111. // newsApp
  112. 'news/newsDetailApp': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  113. 'webpack/hot/only-dev-server',
  114. './src/js/news/newsDetailApp.js'
  115. ]
  116. }
  117. };