tapPromise 要求方法返回Promise 以便处理异步,而tapAsync 则是需要用callback 来返回结果 compiler.hooks.done.tapPromise('PluginName', (stats) ...
確定! 回上一頁