我正在研究在github上发现的sound-redux仓库中的源代码:https://github.com/andrewngu/sound-redux。当我查看webpack.config.js时,我无法弄清entry.main是做什么用的。
module.exports = {
// ...
entry: {
main: [
'./scripts/main.js',
'webpack-dev-server/client?http://localhost:8080',
'webpack/hot/only-dev-server'
]
}
// ...
}
这里实际上发生了什么,这个应用程序如何使用它?据我所知,文档中完全没有提及此功能。