单入口配置多入口配置入口是依赖关系图的开始,从入口开始寻找依赖,打包构建,webpack允许一个或者多个入口配置: 单入口配置module.exports = { // 入口起点 entry: './src/index.js',} 多入口配置module.exports = { entry: { index: path.join(srcPath, "index.js"); other: path.join(srcPath, "other.js"); }}