离子2页作为npm包

时间:2017-10-02 15:10:09

标签: npm ionic2

我试图在多个应用程序中重用一些Ionic 2页面,有什么方法可以将它们打包成npm模块或类似的东西吗?

我尝试将所有内容(scss,html和ts)放入一个包中,导入页面或带有页面的模块都会使其编译,但它无法找到HTMl文件。

打开应用程序时会发出以下错误

Unhandled Promise rejection: Failed to load listing.html ; Zone: <root> ; Task: Promise.then ; Value: Failed to load listing.html

亲切的问候

0 个答案:

没有答案