组装||的onComplete

时间:2017-07-04 20:42:16

标签: node.js assemble

当build()函数完全完成时,Assemble API中是否有内置警告/发出/通知的内容?

我的管道工作正常,但我的下一个功能直接绑定到目的地保存的预期文件。

---以下代码示例---

在A组中组装应用程序:

//...

app.build('default' (err) => {
    if (err) throw err;
    this.complete();
})

// ...

呼叫B中的兄弟功能:

// ...

foo () {
    assemble.app.on('complete', () => {
        // Error here, file not saved to destination yet.
    }
}

// ...

0 个答案:

没有答案