import { Plugin, WebpackHookParams } from '@fmfe/genesis-core'; import WebpackBar from 'webpackbar'; export class BarPlugin extends Plugin { public chainWebpack({ target, config }: WebpackHookParams) { const options = target === 'client' ? { name: `Client: ${this.ssr.name}`, color: 'green' } : { name: `Server: ${this.ssr.name}`, color: 'orange' }; config.plugin('webpackbar').use(WebpackBar, [options]); } }