[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/devhttps/frontend/master/tools/webpack-progress-reporter.js [Back]  [Original]

const ProgressPlugin = require('webpack/lib/ProgressPlugin');

module.exports = observer =>
    new ProgressPlugin((progress, msg, ...details) => {
        const [a, b] = details;
        const state = a && b ? `[${a}, ${b}]` : '';
        return observer.next(`${Math.round(progress * 100)}% ${msg} ${state}`);
    });

Web Proxy Viewer  |  New URL  |  Original Page