当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.
}
}
// ...