mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-17 15:30:26 +00:00
Added in 2.30.0 https://github.com/jantimon/html-webpack-plugin/blob/672f34bc98ff4130dba94551866d0e57086a7915/CHANGELOG.md#v2300
28 lines
441 B
TypeScript
28 lines
441 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',
|
|
},
|
|
{
|
|
chunksSortMode: 'manual',
|
|
}
|
|
];
|
|
|
|
const plugins: HtmlWebpackPlugin[] = optionsArray.map(options => new HtmlWebpackPlugin(options));
|