progressPlugin.js 244 Bytes
const ProgressPlugin = require('../plugins/ProgressPlugin');

module.exports = async function addProgressPlugin(opts) {
  const { config, name } = opts;
  config.plugin('progress-plugin').use(ProgressPlugin, [
    {
      name,
    },
  ]);
};