entry.config.js 11 KB

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