Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 webpack 2.1.0-beta.25 和 Angular 2.1。
我希望能够从 config.json 文件加载路由,并在运行时将该路由及其组件加载到 angular 2 应用程序中。
我在 webpack 1 和旧版本的 angular2 中取得了成功,使用 require.ensure() 为动态加载的组件生成了一个单独的包。
使用 webpack 2 和 angular 2.1 完成此任务的最佳方法是什么?
谢谢