entry.config.js 6.5 KB

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