DefinitelyTyped/types/webpack-notifier/webpack-notifier-tests.ts
2017-03-24 14:27:52 -07: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));