Class Bundle

Represents a bundled module.

Hierarchy

  • Bundle

Constructors

Properties

code: string
dependencyTree: DependencyTree
entry: Module
modules: Module[]

Methods

  • Calculate the percent compression from the original scripts to the bundled, minified output.

    Returns

    The percent compression.

    Returns number

  • Write the bundled source code to a local file.

    Parameters

    • dest: string

      The file path to write to.

    • Optional overwrite: boolean = false

      If true, overwrite the file if it already exists.

    Returns void

Generated using TypeDoc