Options
All
  • Public
  • Public/Protected
  • All
Menu

Generator options for asset/resource modules.

Hierarchy

  • AssetResourceGeneratorOptions

Index

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: "/home/runner/work/forge/forge/node_modules/webpack/types".PathData, assetInfo?: 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.

outputPath?: string | ((pathData: "/home/runner/work/forge/forge/node_modules/webpack/types".PathData, assetInfo?: 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.

publicPath?: string | ((pathData: "/home/runner/work/forge/forge/node_modules/webpack/types".PathData, assetInfo?: AssetInfo) => string)

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