UNPKG

@types/webpack-error-notification

Version:
26 lines (20 loc) 972 B
import { Plugin, Stats } from "webpack"; declare class WebpackErrorNotificationPlugin extends Plugin { /** * You can supply some strategy for the plugin to display notification. * If you don't supply anything, it will use process.platform as a strategy name. * `darwin` and `linux` are supported out of the box now. * You can also supply function(msg) {} as a strategy that will use your notification CLI tool of choice. */ constructor(strategy?: WebpackErrorNotificationPlugin.Strategy, options?: WebpackErrorNotificationPlugin.Options); compileMessage(stats: Stats): string; compilationDone(stats: Stats): void; } declare namespace WebpackErrorNotificationPlugin { type Strategy = "darwin" | "linux" | ((msg: string) => void); interface Options { /** if you do not want to notify warnings, set this to `false` */ notifyWarnings?: boolean | undefined; } } export = WebpackErrorNotificationPlugin;