entry.config.js 10 KB

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