UNPKG

@swplabs/peanutforwp

Version:

Peanut for WordPress. Build your themes and blocks with components.

20 lines (16 loc) 345 B
class PostProcessPlugin { constructor({ callback }) { this.callback = callback; } apply(compiler) { compiler.hooks.done.tap('PostProcessPlugin', (stats) => { const { callback } = this; if (typeof callback === 'function') { callback({ stats }); } }); } } module.exports = { PostProcessPlugin };