mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
- allow arbitrary options - narrow minify and chunksSortMode types - export interfaces - fix version - add tests - set strictNullChecks flag to true - add tslint.json
35 lines
569 B
TypeScript
35 lines
569 B
TypeScript
import HtmlWebpackPlugin = require("html-webpack-plugin");
|
|
import { Configuration } from "webpack";
|
|
|
|
const a: Configuration = {
|
|
plugins: [
|
|
new HtmlWebpackPlugin()
|
|
]
|
|
};
|
|
|
|
const b: Configuration = {
|
|
plugins: [
|
|
new HtmlWebpackPlugin({
|
|
title: "test"
|
|
})
|
|
]
|
|
};
|
|
|
|
const minify: HtmlWebpackPlugin.MinifyConfig = {
|
|
caseSensitive: true
|
|
};
|
|
|
|
new HtmlWebpackPlugin({
|
|
minify
|
|
});
|
|
|
|
new HtmlWebpackPlugin({
|
|
chunksSortMode: function compare(a, b) {
|
|
return 1;
|
|
}
|
|
});
|
|
|
|
new HtmlWebpackPlugin({
|
|
arbitrary: "data"
|
|
});
|