mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
- 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
25 lines
407 B
TypeScript
25 lines
407 B
TypeScript
import * as HtmlWebpackPlugin from 'html-webpack-plugin';
|
|
|
|
new HtmlWebpackPlugin();
|
|
|
|
const optionsArray: HtmlWebpackPlugin.Options[] = [
|
|
{
|
|
title: 'test',
|
|
},
|
|
{
|
|
minify: {
|
|
caseSensitive: true,
|
|
},
|
|
},
|
|
{
|
|
chunksSortMode: function compare(a, b) {
|
|
return 1;
|
|
},
|
|
},
|
|
{
|
|
arbitrary: 'data',
|
|
},
|
|
];
|
|
|
|
const plugins: HtmlWebpackPlugin[] = optionsArray.map(options => new HtmlWebpackPlugin(options));
|