You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use posthtml CLI with the nanohtml plugin which returns a promise. Unfortunately posthtml renders the output before the promise from nanohtml resolves. I might be wrong but I think the problem lies in how post-load-plugins ignores promises and calls res() (the callback) before even invoking the plugin, and completely ignoring the returned tree. See: https://github.com/post-org/post-load-plugins/blob/master/src/index.js#L37
The text was updated successfully, but these errors were encountered:
I'm trying to use
posthtml
CLI with thenanohtml
plugin which returns a promise. Unfortunatelyposthtml
renders the output before the promise fromnanohtml
resolves. I might be wrong but I think the problem lies in howpost-load-plugins
ignores promises and callsres()
(the callback) before even invoking the plugin, and completely ignoring the returned tree. See: https://github.com/post-org/post-load-plugins/blob/master/src/index.js#L37The text was updated successfully, but these errors were encountered: