您的位置:首页 > Web前端 > Webpack

webpack配置中出现的问题

2017-06-12 13:38 288 查看
使用webpack打包时,入口文件不能被别的入口文件引用,报错

Module not found: Error: a dependency to an entry point is not allowed


解决方法:

entry: {
a: "./a", // a requires b
b: ["./b"] // workaround: "./b" can now be in another bundle
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: