progressPlugin.js 244 Bytes
Newer Older
邓晓峰's avatar
邓晓峰 committed
1 2 3 4 5 6 7 8 9 10
const ProgressPlugin = require('../plugins/ProgressPlugin');

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