KC's Workspace
    Preparing search index...
    interface CodegenOptions {
        legalComments?:
            | "external"
            | "inline"
            | "none"
            | "eof"
            | { linked: string };
        removeWhitespace?: boolean;
    }
    Index
    legalComments?: "external" | "inline" | "none" | "eof" | { linked: string }

    How to handle legal comments (comments containing @license, @preserve, or starting with //!//*!).

    • "none" - Do not preserve any legal comments.
    • "inline" - Preserve all legal comments inline.
    • "eof" - Move all legal comments to the end of the file.
    • "external" - Extract legal comments without linking.
    • { linked: "path/to/legal.txt" } - Extract legal comments and add a link comment to the given path.
    "none" (when minifying)
    
    removeWhitespace?: boolean

    Remove whitespace.

    true