使用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
}
使用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
}