entry.config.js 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  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/certify": "./js/user/certify.js",
  8. "user/groupCertify": "./js/user/groupCertify.js",
  9. "user/subscriberDetail": "./js/user/subscriberDetail.js",
  10. //user-account
  11. "user/account/index": "./js/user/account/index.js",
  12. "user/account/set": "./js/user/account/set.js",
  13. "user/account/services": "./js/user/account/services.js",
  14. "user/account/achievement": "./js/user/account/achievement.js",
  15. "user/account/demand": "./js/user/account/demand.js",
  16. "user/account/evaluateInfo": "./js/user/account/evaluateInfo.js",
  17. //admin
  18. "admin/index": "./js/admin/index.js",
  19. "admin/login": "./js/admin/login.js",
  20. "admin/set": "./js/admin/set.js",
  21. "admin/userManage": "./js/admin/userManage.js",
  22. "admin/idea": "./js/admin/idea.js",
  23. //admin-servicesManage
  24. "admin/servicesManage/contract": "./js/admin/servicesManage/contract.js",
  25. "admin/servicesManage/patent": "./js/admin/servicesManage/patent.js",
  26. "admin/servicesManage/copyright": "./js/admin/servicesManage/copyright.js",
  27. "admin/servicesManage/highTech": "./js/admin/servicesManage/highTech.js",
  28. "admin/servicesManage/highTechInfo":
  29. "./js/admin/servicesManage/highTechInfo.js",
  30. "admin/servicesManage/technology":
  31. "./js/admin/servicesManage/technology.js",
  32. "admin/servicesManage/projectOrder":
  33. "./js/admin/servicesManage/projectOrder.js",
  34. //admin/demand
  35. "admin/demand": "./js/admin/demand.js",
  36. "admin/achievement": "./js/admin/achievement.js",
  37. "admin/customer": "./js/admin/customer.js",
  38. //admin/userOrder
  39. "admin/userOrder": "./js/admin/userOrder.js",
  40. "admin/order": "./js/admin/order.js",
  41. "admin/operate": "./js/admin/operate.js",
  42. "admin/personnel": "./js/admin/personnel.js",
  43. "admin/project": "./js/admin/project.js",
  44. "admin/statistics": "./js/admin/statistics.js",
  45. //portal 门户
  46. // 'portal/search/demand': './js/portal/search/demand.js',
  47. // 'portal/search/achievement': './js/portal/search/achievement.js',
  48. // 'portal/search/subscriberUser': './js/portal/search/subscriberUser.js',
  49. // 'portal/search/subscriberOrg': './js/portal/search/subscriberOrg.js'
  50. },
  51. watch: {
  52. "user/index": [
  53. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  54. "webpack/hot/only-dev-server",
  55. "./js/user/index.js",
  56. ],
  57. "user/login": [
  58. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  59. "webpack/hot/only-dev-server",
  60. "./js/user/login.js",
  61. ],
  62. "user/signIn": [
  63. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  64. "webpack/hot/only-dev-server",
  65. "./js/user/signIn.js",
  66. ],
  67. "user/certify": [
  68. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  69. "webpack/hot/only-dev-server",
  70. "./js/user/certify.js",
  71. ],
  72. "user/groupCertify": [
  73. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  74. "webpack/hot/only-dev-server",
  75. "./js/user/groupCertify.js",
  76. ],
  77. "user/subscriberDetail": [
  78. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  79. "webpack/hot/only-dev-server",
  80. "./js/user/subscriberDetail.js",
  81. ],
  82. //user-account
  83. "user/account/index": [
  84. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  85. "webpack/hot/only-dev-server",
  86. "./js/user/account/index.js",
  87. ],
  88. "user/account/set": [
  89. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  90. "webpack/hot/only-dev-server",
  91. "./js/user/account/set.js",
  92. ],
  93. "user/account/services": [
  94. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  95. "webpack/hot/only-dev-server",
  96. "./js/user/account/services.js",
  97. ],
  98. "user/account/achievement": [
  99. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  100. "webpack/hot/only-dev-server",
  101. "./js/user/account/achievement.js",
  102. ],
  103. "user/account/evaluateInfo": [
  104. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  105. "webpack/hot/only-dev-server",
  106. "./js/user/account/evaluateInfo.js",
  107. ],
  108. "user/account/demand": [
  109. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  110. "webpack/hot/only-dev-server",
  111. "./js/user/account/demand.js",
  112. ],
  113. //admin
  114. "admin/index": [
  115. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  116. "webpack/hot/only-dev-server",
  117. "./js/admin/index.js",
  118. ],
  119. "admin/login": [
  120. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  121. "webpack/hot/only-dev-server",
  122. "./js/admin/login.js",
  123. ],
  124. "admin/userManage": [
  125. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  126. "webpack/hot/only-dev-server",
  127. "./js/admin/userManage.js",
  128. ],
  129. "admin/demand": [
  130. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  131. "webpack/hot/only-dev-server",
  132. "./js/admin/demand.js",
  133. ],
  134. "admin/achievement": [
  135. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  136. "webpack/hot/only-dev-server",
  137. "./js/admin/achievement.js",
  138. ],
  139. "admin/customer": [
  140. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  141. "webpack/hot/only-dev-server",
  142. "./js/admin/customer.js",
  143. ],
  144. "admin/set": [
  145. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  146. "webpack/hot/only-dev-server",
  147. "./js/admin/set.js",
  148. ],
  149. "admin/idea": [
  150. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  151. "webpack/hot/only-dev-server",
  152. "./js/admin/idea.js",
  153. ],
  154. "admin/userOrder": [
  155. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  156. "webpack/hot/only-dev-server",
  157. "./js/admin/userOrder.js",
  158. ],
  159. "admin/order": [
  160. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  161. "webpack/hot/only-dev-server",
  162. "./js/admin/order.js",
  163. ],
  164. "admin/operate": [
  165. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  166. "webpack/hot/only-dev-server",
  167. "./js/admin/operate.js",
  168. ],
  169. "admin/project": [
  170. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  171. "webpack/hot/only-dev-server",
  172. "./js/admin/project.js",
  173. ],
  174. "admin/personnel": [
  175. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  176. "webpack/hot/only-dev-server",
  177. "./js/admin/personnel.js",
  178. ],
  179. //admin-servicesManage
  180. "admin/servicesManage/contract": [
  181. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  182. "webpack/hot/only-dev-server",
  183. "./js/admin/servicesManage/contract.js",
  184. ],
  185. "admin/servicesManage/patent": [
  186. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  187. "webpack/hot/only-dev-server",
  188. "./js/admin/servicesManage/patent.js",
  189. ],
  190. "admin/servicesManage/copyright": [
  191. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  192. "webpack/hot/only-dev-server",
  193. "./js/admin/servicesManage/copyright.js",
  194. ],
  195. "admin/servicesManage/highTech": [
  196. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  197. "webpack/hot/only-dev-server",
  198. "./js/admin/servicesManage/highTech.js",
  199. ],
  200. "admin/servicesManage/highTechInfo": [
  201. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  202. "webpack/hot/only-dev-server",
  203. "./js/admin/servicesManage/highTechInfo.js",
  204. ],
  205. "admin/servicesManage/technology": [
  206. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  207. "webpack/hot/only-dev-server",
  208. "./js/admin/servicesManage/technology.js",
  209. ],
  210. "admin/servicesManage/projectOrder": [
  211. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  212. "webpack/hot/only-dev-server",
  213. "./js/admin/servicesManage/projectOrder.js",
  214. ],
  215. "admin/statistics": [
  216. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  217. "webpack/hot/only-dev-server",
  218. "./js/admin/statistics.js",
  219. ],
  220. "admin/project": [
  221. "webpack-dev-server/client?http://127.0.0.1:80", // WebpackDevServer host and port
  222. "webpack/hot/only-dev-server",
  223. "./js/admin/project.js",
  224. ],
  225. //portal 门户
  226. // 'portal/search/demand': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  227. // 'webpack/hot/only-dev-server',
  228. // './js/portal/search/demand.js'
  229. // ],
  230. // 'portal/search/achievement': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  231. // 'webpack/hot/only-dev-server',
  232. // './js/portal/search/achievement.js'
  233. // ],
  234. // 'portal/search/subscriberUser': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  235. // 'webpack/hot/only-dev-server',
  236. // './js/portal/search/subscriberUser.js'
  237. // ],
  238. // 'portal/search/subscriberOrg': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  239. // 'webpack/hot/only-dev-server',
  240. // './js/portal/search/subscriberOrg.js'
  241. // ]
  242. },
  243. };