jimpex
    Preparing search index...

    Type Alias HTMLGeneratorOptions

    The options to customize a HTMLGenerator instance.

    type HTMLGeneratorOptions = {
        configKeys: string[];
        deleteTemplateAfter: boolean;
        file: string;
        placeholderExpression: RegExp;
        replacePlaceholder: string | RegExp;
        silent: boolean;
        template: string;
        variableName: string;
    }
    Index

    Properties

    configKeys: string[]

    A list of settings from the app configuration that will be used as the information to inject on the file.

    ['features', 'version', 'postMessagesPrefix']
    
    deleteTemplateAfter: boolean

    Whether or not to delete the template after generating the file.

    true
    
    file: string

    The name of the generated file.

    'index.html'
    
    placeholderExpression: RegExp

    A regular expression for dynamic placeholders that will be replaced by values when the file is generated.

    /{{(.*?)}}/gi
    
    replacePlaceholder: string | RegExp

    The placeholder string where the information will be written.

    /{{appConfig(?:uration)?}}/
    
    silent: boolean

    If true, it won't log messages on the terminal when generating the file.

    false
    
    template: string

    The name of the file it should use as template.

    'index.tpl.html'
    
    variableName: string

    The name of the variable that will have the information on the file.

    'appConfig'