类似下面这样就可以了,entry设置为对象 每个入口设置为属性,属性的值是一个数组,就可以像单入口一样往这个数组添加entry: { Profile: [ ‘webpack-dev-server/client?‘, ‘webpack/hot/only-dev-server‘, ‘./profile.js‘], Feed: [ ‘webpack-dev-server/client?‘, ‘webpack/hot/only-dev-server‘, ‘./feed.js‘] }
时间: 2024-10-07 13:54:37