add result.messages
michael-ciniawsky opened this issue · comments
Michael Ciniawsky commented
posthtml(plugins).process(html, options).then((result) => {
result.messages.forEach((msg) => {
if (msg.type === 'warning') loader.emitWarning(msg.warning)
if (msg.type === 'dependency') loader.addDependency(msg.file)
})
})