webpack/declarations/plugins/SourceMapDevToolPlugin.d.ts

74 lines
2.2 KiB
TypeScript
Raw Normal View History

2018-05-08 12:04:57 +08:00
/**
* This file was automatically generated.
* DO NOT MODIFY BY HAND.
* Run `yarn special-lint-fix` to update
2018-05-08 12:04:57 +08:00
*/
/**
* Include source maps for modules based on their extension (defaults to .js and .css).
*/
2018-05-08 12:04:57 +08:00
export type Rules = Rule[] | Rule;
/**
* Include source maps for modules based on their extension (defaults to .js and .css).
*/
2018-09-21 14:39:15 +08:00
export type Rule = RegExp | string;
2018-05-08 12:04:57 +08:00
2018-09-20 16:13:38 +08:00
export interface SourceMapDevToolPluginOptions {
2018-05-08 12:04:57 +08:00
/**
* 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.
2018-05-08 12:04:57 +08:00
*/
2018-09-19 16:17:33 +08:00
append?: (false | null) | string;
2018-05-08 12:04:57 +08:00
/**
* Indicates whether column mappings should be used (defaults to true).
2018-05-08 12:04:57 +08:00
*/
2018-09-19 16:17:33 +08:00
columns?: boolean;
2018-05-08 12:04:57 +08:00
/**
* Exclude modules that match the given value from source map generation.
2018-05-08 12:04:57 +08:00
*/
exclude?: Rules;
2018-09-19 16:17:33 +08:00
/**
* 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.
2018-09-19 16:17:33 +08:00
*/
fallbackModuleFilenameTemplate?: string | Function;
2018-09-19 16:17:33 +08:00
/**
* Path prefix to which the [file] placeholder is relative to.
2018-09-19 16:17:33 +08:00
*/
fileContext?: string;
2018-05-08 12:04:57 +08:00
/**
* Defines the output filename of the SourceMap (will be inlined if no value is provided).
2018-05-08 12:04:57 +08:00
*/
filename?: (false | null) | string;
/**
* Include source maps for module paths that match the given value.
2018-05-08 12:04:57 +08:00
*/
2018-09-19 16:17:33 +08:00
include?: Rules;
2018-05-08 12:04:57 +08:00
/**
* Indicates whether SourceMaps from loaders should be used (defaults to true).
2018-05-08 12:04:57 +08:00
*/
2018-09-19 16:17:33 +08:00
module?: boolean;
/**
* Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap.
2018-09-19 16:17:33 +08:00
*/
moduleFilenameTemplate?: string | Function;
2018-05-08 12:04:57 +08:00
/**
* Namespace prefix to allow multiple webpack roots in the devtools.
2018-05-08 12:04:57 +08:00
*/
namespace?: string;
/**
* Omit the 'sourceContents' array from the SourceMap.
2018-05-08 12:04:57 +08:00
*/
noSources?: boolean;
/**
* Provide a custom public path for the SourceMapping comment.
2018-05-08 12:04:57 +08:00
*/
publicPath?: string;
/**
* Provide a custom value for the 'sourceRoot' property in the SourceMap.
2018-05-08 12:04:57 +08:00
*/
2018-09-19 16:17:33 +08:00
sourceRoot?: string;
2018-05-08 12:04:57 +08:00
/**
* Include source maps for modules based on their extension (defaults to .js and .css).
2018-05-08 12:04:57 +08:00
*/
2018-09-19 16:17:33 +08:00
test?: Rules;
2018-05-08 12:04:57 +08:00
}