entry.config.js 10 KB

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