Generator options for asset/resource modules.

Hierarchy

  • AssetResourceGeneratorOptions

Properties

emit?: boolean

Emit an output asset from this asset module. This can be set to 'false' to omit emitting e. g. for SSR.

filename?: string | ((pathData, assetInfo?) => string)

Specifies the filename template of output files on disk. You must not specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.

Type declaration

    • (pathData, assetInfo?): string
    • Parameters

      Returns string

outputPath?: string | ((pathData, assetInfo?) => string)

Emit the asset in the specified folder relative to 'output.path'. This should only be needed when custom 'publicPath' is specified to match the folder structure there.

Type declaration

    • (pathData, assetInfo?): string
    • Parameters

      Returns string

publicPath?: string | ((pathData, assetInfo?) => string)

The 'publicPath' specifies the public URL address of the output files when referenced in a browser.

Type declaration

    • (pathData, assetInfo?): string
    • Parameters

      Returns string

Generated using TypeDoc