Files
DefinitelyTyped/webpack-notifier/webpack-notifier-tests.ts
Benjamin Lim ad66bed9da feat: add Watching, MultiCompiler, and MultiWatching types to webpack function return type
- add Compiler, Watching classes
 - add Plugin abstract class
 - change plugins to extend Plugin

BREAKING CHANGE:
 - change Plugin apply param type from Webpack to Compiler
 - remove plugin static types
 - remove Webpack and Optimize interfaces
2017-02-08 03:06:23 +08:00

15 lines
378 B
TypeScript

import { Plugin } from 'webpack';
import * as WebpackNotifierPlugin from 'webpack-notifier';
const optionsArray: WebpackNotifierPlugin.Options[] = [
{
title: 'Webpack',
contentImage: 'logo.png',
excludeWarnings: true,
alwaysNotify: true,
skipFirstNotification: true,
},
];
const plugins: Plugin[] = optionsArray.map(options => new WebpackNotifierPlugin(options));