mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
28 lines
442 B
TypeScript
28 lines
442 B
TypeScript
import HtmlWebpackPlugin = require('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));
|