On this page

These types are not exported by webpack, but they are available to TypeScript consumers.

Attributes
minSizeReduce:<number>
minimal size reduction to trigger merging

Attributes
chunkOverhead:<number>
Extra cost for each chunk (Default: 9.8kiB).
entryChunkMultiplicator:<number>
Extra cost multiplicator for entry chunks (Default: 10).
maxSize:<number>
Byte, max size of per file (Default: 50kiB).
minSize:<number>
Byte, split point. (Default: 30kiB).

  • [index: {string}] {AliasOptionNewRequest}

Attributes
Specifies the banner.
entryOnly:<boolean>
If true, the banner will only be added to the entry chunks.
Exclude all modules matching any of these conditions.
footer:<boolean>
If true, banner will be placed at the end of the output.
Include all modules matching any of these conditions.
If true, banner will not be wrapped in a comment.
stage:<number>
Specifies the stage when add a banner.
Include all modules that pass test assertion.

Advanced options for cleaning assets.

Attributes
Log the assets that should be removed instead of deleting them.
Keep these assets.

Options object as provided by the user.

Attributes
Set the value of  require.amd and define.amd . Or disable AMD support.
Report the first error as a hard error instead of tolerating it.
Cache generated modules and chunks to improve performance for multiple incremental builds.
context:<string>
The base directory (absolute path!) for resolving the  entry option. If output.pathinfo is set, the included pathinfo is shortened to this directory.
dependencies:<string[]>
References to other configurations to depend on.
A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).
Enable and configure the Dotenv plugin to load environment variables from .env files.
The entry point(s) of the compilation.
experiments:
{Experiments} Enables/Disables experiments (experimental features with relax SemVer compatibility).
Extend configuration from another configuration (only works when using webpack-cli).
Specify dependencies that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on  output.libraryTarget .
externalsPresets:<ExternalsPresets>
Enable presets of externals for specific targets.
externalsType:
{"asset"|"module"|"css-import"|"css-url"|"global"|"import"|"commonjs"|"jsonp"|"promise"|"this"|"var"|"assign"|"window"|"self"|"commonjs2"|"commonjs-module"|"commonjs-static"|"amd"|"amd-require"|"umd"|"umd2"|"system"|"module-import"|"script"|"node-commonjs"} Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).
ignoreWarnings:<RegExp> | <object> | <object[]>
Ignore specific warnings.
infrastructureLogging:
{InfrastructureLogging} Options for infrastructure level logging.
loader:<Loader>
Custom values available in the loader context.
mode:
{"development"|"none"|"production"} Enable production optimizations or development hints.
Options affecting the normal modules ( NormalModuleFactory ).
Name of the configuration. Used when loading multiple configurations.
Include polyfills or mocks for various node stuff.
optimization:
{Optimization} Enables/Disables integrated optimizations.
output:
{Output} Options affecting the output of the compilation.  output options tell webpack how to write the compiled files to disk.
parallelism:<number>
The number of parallel processed modules in the compilation.
Configuration for web performance recommendations.
Add additional plugins to the compiler.
profile:<boolean>
Capture timing information for each module.
recordsInputPath:<string>
Store compiler state to a json file.
recordsOutputPath:<string>
Load compiler state from a json file.
recordsPath:<string>
Store/Load compiler state from/to a json file. This will result in persistent ids of modules and chunks. An absolute path is expected.  recordsPath is used for recordsInputPath and recordsOutputPath if they left undefined.
Options for the resolver.
resolveLoader:<ResolveOptions>
Options for the resolver when resolving loaders.
Options affecting how file system snapshots are created and validated.
Stats options object or preset name.
Environment to build for. An array of environments to build for all of them when possible.
validate:<boolean>
Enable validation of webpack configuration. Defaults to true in development mode. In production mode, defaults to true unless futureDefaults is enabled, then defaults to false.
watch:<boolean>
Enter watch mode, which rebuilds on file change.
watchOptions:<WatchOptions>
Options for the watcher.

Options for consuming shared modules.

  • consumes {Consumes} Modules that should be consumed from share scope. When provided, property names are used to match requested modules in this compilation.
  • shareScope <string> Share scope name used for all consumed modules (defaults to 'default').

  • exposes {Exposes} Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request.
  • filename <string> The filename for this container relative path inside the output.path directory.
  • library <LibraryOptions> Options for library.
  • name <string> The name for this container.
  • runtime <string> The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.
  • shareScope <string> The name of the share scope which is shared with the host (defaults to 'default').

  • remotes {Remotes} Container locations and request scopes from which modules should be resolved and loaded at runtime. When provided, property name is used as request scope, otherwise request scope is automatically inferred from container location.
  • remoteType <ExternalsType> The external type of the remote containers.
  • shareScope <string> The name of the share scope shared with all remotes (defaults to 'default').

Attributes
addon:<string>
attributes:
{Record<string, string>}
category:<string>
chunkName:<string> | <null>
exclude:<RegExp> | <null>
include:<RegExp> | <null>
mode:
{ContextMode}
namespaceObject:<boolean>
phase:
{0|2|1}
recursive:<boolean>
referencedExports:<null>
exports referenced from modules (won't be mangled)
regExp:<RegExp> | <null>
typePrefix:<string>

Generator options for css modules.

Attributes
esModule:<boolean>
Configure the generated JS modules that use the ES modules syntax.
exportsOnly:<boolean>
Avoid generating and loading a stylesheet and only embed exports from css into output javascript files.

Parser options for css modules.

  • exportType {"link"|"text"|"css-style-sheet"|"style"} Configure how CSS content is exported as default.
  • import <boolean> Enable/disable @import at-rules handling.
  • namedExports <boolean> Use ES modules named export for css exports.
  • url <boolean> Enable/disable url()/image-set()/src()/image() functions handling.

Attributes
context:<string>
Context of requests in the manifest file (defaults to the webpack context).
entryOnly:<boolean>
If true, only entry points will be exposed (default: true).
format:<boolean>
If true, manifest json file (output) will be formatted.
Name of the exposed dll function (external name, use value of 'output.library').
Absolute path to the manifest json file (output).
Type of the dll bundle (external type, use value of 'output.libraryTarget').

Options for Dotenv plugin.

Attributes
The directory from which .env files are loaded. Can be an absolute path, false will disable the .env file loading.
Only expose environment variables that start with these prefixes. Defaults to 'WEBPACK_'.
template:<string[]>
Template patterns for .env file names. Use [mode] as placeholder for the webpack mode. Defaults to ['.env', '.env.local', '.env.[mode]', '.env.[mode].local'].

No generator options are supported for this module type.


No parser options are supported for this module type.


Attributes
module id
require:
{WebpackRequire} require function


Attributes
mangleImports:<boolean>
mangle imports

  • [index: {string}] <any>

Options for building http resources.

Attributes
allowedUris:<string> | <RegExp> | <object[]>
List of allowed URIs (resp. the beginning of them).
cacheLocation:<string>
Location where resource content is stored for lockfile entries. It's also possible to disable storing by passing false.
frozen:<boolean>
When set, anything that would lead to a modification of the lockfile or any resource content, will result in an error.
lockfileLocation:<string>
Location of the lockfile.
proxy:<string>
Proxy configuration, which can be used to specify a proxy server to use for HTTP requests.
upgrade:<boolean>
When set, resources of existing lockfile entries will be fetched and entries will be upgraded when resource content has changed.

Parser options for javascript modules.

Attributes
Set the value of  require.amd and define.amd . Or disable AMD support.
browserify:<boolean>
Enable/disable special handling for browserify bundles.
commonjs:<boolean>
Enable/disable parsing of CommonJs syntax.
commonjsMagicComments:<boolean>
Enable/disable parsing of magic comments in CommonJs syntax.
createRequire:<string> | <boolean>
Enable/disable parsing "import { createRequire } from "module"" and evaluating createRequire().
deferImport:<boolean>
Enable experimental tc39 proposal  https://github.com/tc39/proposal-defer-import-eval . This allows to defer execution of a module until it's first use.
dynamicImportFetchPriority:
{false|"auto"|"low"|"high"} Specifies global fetchPriority for dynamic import.
dynamicImportMode:
{"weak"|"eager"|"lazy"|"lazy-once"} Specifies global mode for dynamic import.
dynamicImportPrefetch:<number> | <boolean>
Specifies global prefetch for dynamic import.
dynamicImportPreload:<number> | <boolean>
Specifies global preload for dynamic import.
dynamicUrl:<boolean>
Enable/disable parsing of dynamic URL.
exportsPresence:
{false|"error"|"warn"|"auto"} Specifies the behavior of invalid export names in "import ... from ..." and "export ... from ...".
exprContextCritical:<boolean>
Enable warnings for full dynamic dependencies.
exprContextRecursive:<boolean>
Enable recursive directory lookup for full dynamic dependencies.
exprContextRegExp:<boolean> | <RegExp>
Sets the default regular expression for full dynamic dependencies.
exprContextRequest:<string>
Set the default request for full dynamic dependencies.
harmony:<boolean>
Enable/disable parsing of EcmaScript Modules syntax.
import:<boolean>
Enable/disable parsing of import() syntax.
importExportsPresence:
{false|"error"|"warn"|"auto"} Specifies the behavior of invalid export names in "import ... from ...".
importMeta:<boolean>
Enable/disable evaluating import.meta. Set to 'preserve-unknown' to preserve unknown properties for runtime evaluation.
importMetaContext:<boolean>
Enable/disable evaluating import.meta.webpackContext.
Include polyfills or mocks for various node stuff.
overrideStrict:
{"strict"|"non-strict"} Override the module to strict or non-strict. This may affect the behavior of the module (some behaviors differ between strict and non-strict), so please configure this option carefully.
parse:<object>
Function to parser source code.
reexportExportsPresence:
{false|"error"|"warn"|"auto"} Specifies the behavior of invalid export names in "export ... from ...". This might be useful to disable during the migration from "export ... from ..." to "export type ... from ..." when reexporting types in TypeScript.
requireContext:<boolean>
Enable/disable parsing of require.context syntax.
requireEnsure:<boolean>
Enable/disable parsing of require.ensure syntax.
requireInclude:<boolean>
Enable/disable parsing of require.include syntax.
requireJs:<boolean>
Enable/disable parsing of require.js special syntax like require.config, requirejs.config, require.version and requirejs.onError.
strictExportPresence:<boolean>
Deprecated in favor of "exportsPresence". Emit errors instead of warnings when imported names don't exist in imported module.
strictThisContextOnImports:<boolean>
Handle the this context correctly according to the spec for namespace objects.
system:<boolean>
Enable/disable parsing of System.js special syntax like System.import, System.get, System.set and System.register.
unknownContextCritical:<boolean>
Enable warnings when using the require function in a not statically analyse-able way.
unknownContextRecursive:<boolean>
Enable recursive directory lookup when using the require function in a not statically analyse-able way.
unknownContextRegExp:<boolean> | <RegExp>
Sets the regular expression when using the require function in a not statically analyse-able way.
unknownContextRequest:<string>
Sets the request when using the require function in a not statically analyse-able way.
Enable/disable parsing of new URL() syntax.
Disable or configure parsing of WebWorker syntax like new Worker() or navigator.serviceWorker.register().
wrappedContextCritical:<boolean>
Enable warnings for partial dynamic dependencies.
wrappedContextRecursive:<boolean>
Enable recursive directory lookup for partial dynamic dependencies.
wrappedContextRegExp:<RegExp>
Set the inner regular expression for partial dynamic dependencies.

Generator options for json modules.

Attributes
JSONParse:<boolean>
Use  JSON.parse when the JSON string is longer than 20 characters.

Parser options for JSON modules.

Attributes
exportsDepth:<number>
The depth of json dependency flagged as  exportInfo .
namedExports:<boolean>
Allow named exports for json of object type.
parse:<object>
Function to parser content and return JSON.

Attributes
assetsSort:<string>
assetsSpace:<number>
cachedAssets:<boolean>
cachedModules:<boolean>
chunkGroupAuxiliary:<boolean>
chunkGroupChildren:<boolean>
chunkGroupMaxAssets:<number>
chunkGroups:<boolean>
chunkModulesSort:<string>
chunkModulesSpace:<number>
chunksSort:<string>
context:<string>
dependentModules:<boolean>
entrypoints:<boolean>
excludeAssets:<object[]>
excludeModules:<object[]>
groupAssetsByEmitStatus:<boolean>
groupAssetsByExtension:<boolean>
groupAssetsByPath:<boolean>
groupModulesByAttributes:<boolean>
groupModulesByCacheStatus:<boolean>
groupModulesByExtension:<boolean>
groupModulesByLayer:<boolean>
groupModulesByPath:<boolean>
groupModulesByType:<boolean>
logging:
{false|"error"|"warn"|"info"|"log"|"verbose"|"none"}
loggingDebug:<object[]>
loggingTrace:<boolean>
modulesSort:<string>
modulesSpace:<number>
nestedModulesSort:<string>
nestedModulesSpace:<number>
orphanModules:<boolean>
requestShortener:
{RequestShortener}
runtimeModules:<boolean>
warningsFilter:<object[]>

Options for the default backend.

Attributes
client:<string>
A custom client.
Specifies where to listen to from the server.
protocol:
{"http"|"https"} Specifies the protocol the client should use to connect to the server.
server:
{ServerOptions<IncomingMessage, ServerResponse>|ServerOptions<IncomingMessage, ServerResponse>|object} Specifies how to create the server handling the EventSource requests.

Options for compiling entrypoints and import()s only when they are accessed.

Attributes
Specifies the backend that should be used for handling client keep alive.
entries:<boolean>
Enable/disable lazy compilation for entries.
imports:<boolean>
Enable/disable lazy compilation for import() modules.
Specify which entrypoints or import()ed modules should be lazily compiled. This is matched with the imported module and not the entrypoint name.

  • [index: {string}] <any>

Attributes
associatedObjectForCache:<object>
object for caching
context:<string>
absolute context path to which lib ident is relative to

Attributes
context:<string>
Context of requests in the manifest file (defaults to the webpack context).
entryOnly:<boolean>
If true, only entry points will be exposed (default: true).
format:<boolean>
If true, manifest json file (output) will be formatted.
Name of the exposed dll function (external name, use value of 'output.library').
Absolute path to the manifest json file (output).
Type of the dll bundle (external type, use value of 'output.libraryTarget').

Attributes
recursive:<boolean>

Attributes
entrypoints:<boolean>
Enables/disables generation of the entrypoints manifest section.
filename:<string>
Specifies the filename of the output file on disk. By default the plugin will emit  manifest.json inside the 'output.path' directory.
filter:<object>
Allows filtering the files which make up the manifest.
generate:<object>
A function that receives the manifest object, modifies it, and returns the modified manifest.
prefix:<string>
Specifies a path prefix for all keys in the manifest.
serialize:<object>
A function that receives the manifest object and returns the manifest string.

Attributes
columns:<boolean>
need columns?
module:<boolean>
is module

Attributes
parallelism:<number>
how many Compilers are allows to run at the same time in parallel

  • infrastructureLogging {InfrastructureLogging} infrastructure logging options

Options object for node compatibility features.

Attributes
__dirname:<boolean>
Include a polyfill for the '__dirname' variable.
__filename:<boolean>
Include a polyfill for the '__filename' variable.
global:<boolean>
Include a polyfill for the 'global' variable.

Attributes
asyncChunkLoading:<boolean>
enable async chunk loading

Attributes
encoding:<null>

Attributes
associatedObjectForCache:<object>
object for caching
content:
{DllReferencePluginOptionsContent} content
context:<string>
absolute context path to which lib ident is relative to
extensions:<string[]>
extensions
scope:<string>
scope
source:<string>
source
type:
{"object"|"require"} type

Attributes
allowHashBang:<boolean>
allowReturnOutsideFunction:<boolean>
comments:<boolean>
ecmaVersion:
{ecmaVersion}
locations:<boolean>
ranges:<boolean>
semicolons:<boolean>
sourceType:
{"module"|"script"}

  • [index: {string}] <any>

Configuration object for web performance recommendations.

Attributes
assetFilter:<object>
Filter function to select assets that are checked.
hints:
{false|"error"|"warning"} Sets the format of the hints: warnings, errors or nothing at all.
maxAssetSize:<number>
File size limit (in bytes) when exceeded, that webpack will provide performance hints.
maxEntrypointSize:<number>
Total size of an entry point (in bytes).

Attributes
additionalAssets:<boolean> | <object>

Attributes
outputPath:<string>
Path to the output file e.g.  path.resolve(__dirname, 'profiling/events.json') . Defaults to events.json .

Options object for the ProgressPlugin.

Attributes
activeModules:<boolean>
Show active modules count and one active module in progress message.
dependencies:<boolean>
Show dependencies count in progress message.
dependenciesCount:<number>
Minimum dependencies count to start with. For better progress calculation. Default: 10000.
entries:<boolean>
Show entries count in progress message.
handler:<object>
Function that executes for every progress step.
modules:<boolean>
Show modules count in progress message.
modulesCount:<number>
Minimum modules count to start with. For better progress calculation. Default: 5000.
percentBy:<null>
Collect percent algorithm. By default it calculates by a median from modules, entries and dependencies percent.
profile:<boolean> | <null>
Collect profile data for progress steps. Default: false.

  • provides {Provides} Modules that should be provided as shared modules to the share scope. When provided, property name is used to match modules, otherwise this is automatically inferred from share key.
  • shareScope <string> Share scope name used for all provided modules (defaults to 'default').


Attributes
import:<boolean>
use import?

Attributes
import:<boolean>
use import?
mangleImports:<boolean>
mangle imports

Attributes
hashDigest:<string>
the hash digest to use
hashFunction:
{HashFunction} the hash function to use

Options for shared modules.

  • shared {Shared} Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.
  • shareScope <string> Share scope name used for all shared modules (defaults to 'default').

Options affecting how file system snapshots are created and validated.

Attributes
buildDependencies:<object>
Options for snapshotting build dependencies to determine if the whole cache need to be invalidated.
contextModule:<object>
Options for snapshotting the context module to determine if it needs to be built again.
immutablePaths:<string> | <RegExp[]>
List of paths that are managed by a package manager and contain a version or hash in its path so all files are immutable.
managedPaths:<string> | <RegExp[]>
List of paths that are managed by a package manager and can be trusted to not be modified otherwise.
module:<object>
Options for snapshotting dependencies of modules to determine if they need to be built again.
resolve:<object>
Options for snapshotting dependencies of request resolving to determine if requests need to be re-resolved.
resolveBuildDependencies:<object>
Options for snapshotting the resolving of build dependencies to determine if the build dependencies need to be re-resolved.
unmanagedPaths:<string> | <RegExp[]>
List of paths that are not managed by a package manager and the contents are subject to change.

Attributes
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.
columns:<boolean>
Indicates whether column mappings should be used (defaults to true).
debugIds:<boolean>
Emit debug IDs into source and SourceMap.
Exclude modules that match the given value from source map generation.
fallbackModuleFilenameTemplate:<string> | <object>
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.
fileContext:<string>
Path prefix to which the [file] placeholder is relative to.
filename:<string> | <null>
Defines the output filename of the SourceMap (will be inlined if no value is provided).
ignoreList:<string> | <RegExp> | <object>
Decide whether to ignore source files that match the specified value in the SourceMap.
Include source maps for module paths that match the given value.
module:<boolean>
Indicates whether SourceMaps from loaders should be used (defaults to true).
moduleFilenameTemplate:<string> | <object>
Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap.
namespace:<string>
Namespace prefix to allow multiple webpack roots in the devtools.
noSources:<boolean>
Omit the 'sourceContents' array from the SourceMap.
publicPath:<string>
Provide a custom public path for the SourceMapping comment.
sourceRoot:<string>
Provide a custom value for the 'sourceRoot' property in the SourceMap.
Include source maps for modules based on their extension (defaults to .js and .css).

Attributes
bigint:<boolean>

Attributes
bigint:<boolean>
throwIfNoEntry:<boolean>

Attributes
autoClose:<boolean>
emitClose:<boolean>
encoding:
{"ascii"|"utf8"|"utf-8"|"utf16le"|"utf-16le"|"ucs2"|"ucs-2"|"base64"|"base64url"|"latin1"|"binary"|"hex"}
flags:<string>
start:<number>

Attributes
baseUrl:<string>
Override baseUrl from tsconfig.json. If provided, this value will be used instead of the baseUrl in the tsconfig file
configFile:<string>
A relative path to the tsconfig file based on cwd, or an absolute path of tsconfig file
references:<string[]>
References to other tsconfig files. 'auto' inherits from TypeScript config, or an array of relative/absolute paths

Options for building virtual resources.

Attributes
context:<string>
The default context for virtual modules. A string path. Defaults to 'auto', which will try to resolve the context from the module id.
modules:<object>
The virtual modules configuration.
scheme:<string>
The URL scheme to use for virtual resources.

Attributes
A list of RegExps or absolute paths to directories or files that should be ignored.

Options for the watcher.

Attributes
aggregateTimeout:<number>
Delay the rebuilt after the first change. Value is a time in ms.
followSymlinks:<boolean>
Resolve symlinks and watch symlink and real file. This is usually not needed as webpack already resolves symlinks ('resolve.symlinks').
Ignore some files from watching (glob pattern or regexp).
Enable polling mode for watching.
stdin:<boolean>
Stop watching when stdin stream has ended.

Attributes

Normalized webpack options object.

Attributes
Set the value of  require.amd and define.amd . Or disable AMD support.
Report the first error as a hard error instead of tolerating it.
Cache generated modules and chunks to improve performance for multiple incremental builds.
context:<string>
The base directory (absolute path!) for resolving the  entry option. If output.pathinfo is set, the included pathinfo is shortened to this directory.
dependencies:<string[]>
References to other configurations to depend on.
devServer:<object>
Options for the webpack-dev-server.
A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).
Enable and configure the Dotenv plugin to load environment variables from .env files.
The entry point(s) of the compilation.
experiments:
{ExperimentsNormalized} Enables/Disables experiments (experimental features with relax SemVer compatibility).
externals:<Externals>
Specify dependencies that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on  output.libraryTarget .
externalsPresets:<ExternalsPresets>
Enable presets of externals for specific targets.
externalsType:
{"asset"|"module"|"css-import"|"css-url"|"global"|"import"|"commonjs"|"jsonp"|"promise"|"this"|"var"|"assign"|"window"|"self"|"commonjs2"|"commonjs-module"|"commonjs-static"|"amd"|"amd-require"|"umd"|"umd2"|"system"|"module-import"|"script"|"node-commonjs"} Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).
ignoreWarnings:<object[]>
Ignore specific warnings.
infrastructureLogging:
{InfrastructureLogging} Options for infrastructure level logging.
loader:<Loader>
Custom values available in the loader context.
mode:
{"development"|"none"|"production"} Enable production optimizations or development hints.
Options affecting the normal modules ( NormalModuleFactory ).
Name of the configuration. Used when loading multiple configurations.
node:<Node>
Include polyfills or mocks for various node stuff.
optimization:
{OptimizationNormalized} Enables/Disables integrated optimizations.
output:
{OutputNormalized} Normalized options affecting the output of the compilation.  output options tell webpack how to write the compiled files to disk.
parallelism:<number>
The number of parallel processed modules in the compilation.
Configuration for web performance recommendations.
Add additional plugins to the compiler.
profile:<boolean>
Capture timing information for each module.
recordsInputPath:<string>
Store compiler state to a json file.
recordsOutputPath:<string>
Load compiler state from a json file.
Options for the resolver.
resolveLoader:<ResolveOptions>
Options for the resolver when resolving loaders.
Options affecting how file system snapshots are created and validated.
Stats options object or preset name.
Environment to build for. An array of environments to build for all of them when possible.
validate:<boolean>
Enable validation of webpack configuration. Defaults to true in development mode. In production mode, defaults to true unless futureDefaults is enabled, then defaults to false.
watch:<boolean>
Enter watch mode, which rebuilds on file change.
watchOptions:<WatchOptions>
Options for the watcher.

Attributes
withOptions:<object>
create a resolver with additional/different options

<object>

Attributes
context:<string>
Context of requests in the manifest (or content property) as absolute path.
extensions:<string[]>
Extensions used to resolve modules in the dll bundle (only used when using 'scope').
manifest:<string>
An object containing content and name or a string to the absolute path of the JSON manifest to be loaded upon compilation.
The name where the dll is exposed (external name, defaults to manifest.name).
scope:<string>
Prefix which is used for accessing the content of the dll.
sourceType:
{"var"|"assign"|"this"|"window"|"global"|"commonjs"|"commonjs2"|"commonjs-module"|"amd"|"amd-require"|"umd"|"umd2"|"jsonp"|"system"} How the dll is exposed (libraryTarget, defaults to manifest.type).
type:
{"object"|"require"} The way how the export of the dll bundle is used.

<object>

  • content {DllReferencePluginOptionsContent} The mappings from request to module info.
  • context <string> Context of requests in the manifest (or content property) as absolute path.
  • extensions <string[]> Extensions used to resolve modules in the dll bundle (only used when using 'scope').
  • name <string> The name where the dll is exposed (external name).
  • scope <string> Prefix which is used for accessing the content of the dll.
  • sourceType {"var"|"assign"|"this"|"window"|"global"|"commonjs"|"commonjs2"|"commonjs-module"|"amd"|"amd-require"|"umd"|"umd2"|"jsonp"|"system"} How the dll is exposed (libraryTarget).
  • type {"object"|"require"} The way how the export of the dll bundle is used.

<object>

Attributes
contextRegExp:<RegExp>
A RegExp to test the context (directory) against.
resourceRegExp:<RegExp>
A RegExp to test the request against.

<object>

Attributes
checkResource:<object>
A filter function for resource and context.

Type:
{ReadonlyArray |MultiCompilerOptions}

Type:
{KnownNormalizedStatsOptions|Omit<StatsOptions, "context"|"chunkGroups"|"requestShortener"|"chunksSort"|"modulesSort"|"chunkModulesSort"|"nestedModulesSort"|"assetsSort"|"ids"|"cachedAssets"|"groupAssetsByEmitStatus"|"groupAssetsByPath"|"groupAssetsByExtension"|"assetsSpace"|"excludeAssets"|"excludeModules"|"warningsFilter"|"cachedModules"|"orphanModules"|"dependentModules"|"runtimeModules"|"groupModulesByCacheStatus"|"groupModulesByLayer"|"groupModulesByAttributes"|"groupModulesByPath"|"groupModulesByExtension"|"groupModulesByType"|"entrypoints"|"chunkGroupAuxiliary"|"chunkGroupChildren"|"chunkGroupMaxAssets"|"modulesSpace"|"chunkModulesSpace"|"nestedModulesSpace"|"logging"|"loggingDebug"|"loggingTrace"|"_env">|Record<string, any>}

Attributes

Attributes
context:<string>
  • infrastructureLogging {InfrastructureLoggingNormalizedWithDefaults}
  • target {NonNullable<undefined|string|false|string[]>}
  • output {OutputNormalizedWithDefaults}
  • optimization {OptimizationNormalizedWithDefaults}
  • devtool {NonNullable<undefined|string|false|object[]>}
  • stats {NonNullable}
  • node {NonNullable}
  • profile {NonNullable<undefined|boolean>}
Attributes
parallelism:<number>
  • snapshot {SnapshotNormalizedWithDefaults}
Attributes
  • externalsType {NonNullable<undefined|"import"|"var"|"module"|"assign"|"this"|"window"|"self"|"global"|"commonjs"|"commonjs2"|"commonjs-module"|"commonjs-static"|"amd"|"amd-require"|"umd"|"umd2"|"jsonp"|"system"|"promise"|"module-import"|"script"|"node-commonjs"|"asset"|"css-import"|"css-url">}
  • watch {NonNullable<undefined|boolean>}
  • performance {NonNullable<undefined|false|PerformanceOptions>}
  • recordsInputPath {NonNullable<undefined|string|false>}
  • recordsOutputPath {NonNullable<undefined|string|false>}
  • dotenv {NonNullable<undefined|boolean|DotenvPluginOptions>}


Attributes