Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122468810
index.d.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jul 18, 01:02
Size
1 KB
Mime Type
text/x-java
Expires
Sun, Jul 20, 01:02 (2 d)
Engine
blob
Format
Raw Data
Handle
27455134
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
index.d.ts
View Options
import webpack, { WebpackPluginInstance } from 'webpack';
declare type Attributes = Record<string, any>;
declare type Context = {
title?: string;
htmlAttributes?: Attributes;
cssAttributes?: Attributes;
jsAttributes?: Attributes;
};
declare type TemplateParameters = {
css?: string[];
js?: string[];
body?: string;
head?: string;
publicPath: string;
} & Context;
declare type Options = {
filename?: string;
publicPath?: string;
context?: Context;
template?: (args: TemplateParameters) => string | Promise<string>;
chunks?: string[];
};
declare function generateAttributes(attributes?: {}): string;
declare function generateCSSReferences({ files, publicPath, attributes, }: {
files: string[];
publicPath: string;
attributes: (Attributes & {
rel?: string;
}) | undefined;
}): string;
declare function generateJSReferences({ files, publicPath, attributes, }: {
files: string[];
publicPath: string;
attributes: Attributes | undefined;
}): string;
declare function defaultTemplate({ css, js, publicPath, title, htmlAttributes, head, body, cssAttributes, jsAttributes, }: TemplateParameters): string;
declare class MiniHtmlWebpackPlugin implements WebpackPluginInstance {
private options;
constructor(options: Options);
private webpack4plugin;
private webpack5plugin;
apply(compiler: webpack.Compiler): void;
}
export { MiniHtmlWebpackPlugin, defaultTemplate, generateAttributes, generateCSSReferences, generateJSReferences, };
Event Timeline
Log In to Comment