Interface Preprocessor

interface Preprocessor {
    extension: string | RegExp;
    name: string;
    outputExtension?: string;
    process: (content: string, data: any) => Promise<string>;
}

Properties

extension: string | RegExp

string or regexp of the extension, including the dot.

name: string

name of the preprocessor.

outputExtension?: string

extension to use when writing the output to a file

process: (content: string, data: any) => Promise<string>

content processing function