entry.config.js 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. module.exports = {
  2. prod: {
  3. 'index': './src/js/index.js',
  4. 'service': './src/js/service.js',
  5. 'register': './src/js/register.js',
  6. 'technologyTrading': './src/js/technologyTrading.js',
  7. 'thinktank': './src/js/thinktank.js',
  8. 'financialIndex': './src/js/financialIndex.js',
  9. 'technologyTrading/achievement': './src/js/technologyTrading/achievement.js',
  10. 'technologyTrading/demand': './src/js/technologyTrading/demand.js',
  11. 'technologyTrading/achievementDetail': './src/js/technologyTrading/achievementDetail.js',
  12. 'technologyTrading/demandDetail': './src/js/technologyTrading/demandDetail.js',
  13. 'thinkTank/policy': './src/js/thinkTank/policy.js',
  14. 'thinkTank/policyDetail': './src/js/thinkTank/policyDetail.js',
  15. 'thinkTank/thinkerDetail': './src/js/thinkTank/thinkerDetail.js'
  16. },
  17. watch: {
  18. 'index': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  19. 'webpack/hot/only-dev-server',
  20. './src/js/index.js'
  21. ],
  22. 'service': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  23. 'webpack/hot/only-dev-server',
  24. './src/js/service.js'
  25. ],
  26. 'register': ['webpack-dev-server/client?http://127.0.0.1:80',
  27. 'webpack/hot/only-dev-server',
  28. './src/js/register.js'
  29. ],
  30. 'technologyTrading': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  31. 'webpack/hot/only-dev-server',
  32. './src/js/technologyTrading.js'
  33. ],
  34. 'thinktank': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  35. 'webpack/hot/only-dev-server',
  36. './src/js/thinktank.js'
  37. ],
  38. 'financialIndex': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  39. 'webpack/hot/only-dev-server',
  40. './src/js/financialIndex.js'
  41. ],
  42. 'technologyTrading/achievement': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  43. 'webpack/hot/only-dev-server',
  44. './src/js/technologyTrading/achievement.js'
  45. ],
  46. 'technologyTrading/demand': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  47. 'webpack/hot/only-dev-server',
  48. './src/js/technologyTrading/demand.js'
  49. ],
  50. 'technologyTrading/achievementDetail': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  51. 'webpack/hot/only-dev-server',
  52. './src/js/technologyTrading/achievementDetail.js'
  53. ],
  54. 'technologyTrading/demandDetail': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  55. 'webpack/hot/only-dev-server',
  56. './src/js/technologyTrading/demandDetail.js'
  57. ],
  58. 'thinkTank/policy': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  59. 'webpack/hot/only-dev-server',
  60. './src/js/thinkTank/policy.js'
  61. ],
  62. 'thinkTank/policyDetail': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  63. 'webpack/hot/only-dev-server',
  64. './src/js/thinkTank/policyDetail.js'
  65. ],
  66. 'thinkTank/thinkerDetail': ['webpack-dev-server/client?http://127.0.0.1:80', // WebpackDevServer host and port
  67. 'webpack/hot/only-dev-server',
  68. './src/js/thinkTank/thinkerDetail.js'
  69. ]
  70. }
  71. };