posthtml / posthtml-loader

PostHTML for Webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add result.messages

michael-ciniawsky opened this issue · comments

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)
   })
})