On this page

Appends the given value to the original asset. Usually the #sourceMappingURL comment. [url] is replaced with a URL to the source map file. false disables the appending.

Type:boolean

Indicates whether column mappings should be used (defaults to true).

Type:boolean

Emit debug IDs into source and SourceMap.

Type:string | RegExp | Rule[] | ((str: string) => boolean)

Exclude modules that match the given value from source map generation.

Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap used only if 'moduleFilenameTemplate' would result in a conflict.

Type:string

Path prefix to which the [file] placeholder is relative to.

Type:string | false | null

Defines the output filename of the SourceMap (will be inlined if no value is provided).

Type:string | RegExp | Rule[] | ((str: string) => boolean)

Decide whether to ignore source files that match the specified value in the SourceMap.

Type:string | RegExp | Rule[] | ((str: string) => boolean)

Include source maps for module paths that match the given value.

Type:boolean

Indicates whether SourceMaps from loaders should be used (defaults to true).

Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap.

Type:string

Namespace prefix to allow multiple webpack roots in the devtools.

Type:boolean

Omit the 'sourceContents' array from the SourceMap.

Type:string

Provide a custom public path for the SourceMapping comment.

Type:string

Provide a custom value for the 'sourceRoot' property in the SourceMap.

Type:string | RegExp | Rule[] | ((str: string) => boolean)

Include source maps for modules based on their extension (defaults to .js and .css).