Interface: Configuration
Defined in: webpack/types.d.ts:3141 Options object as provided by the user.Properties
amd?
Defined in: webpack/types.d.ts:3145 Set the value ofoptionalamd:false| {[index:string]:any; }
require.amd and define.amd. Or disable AMD support.
bail?
Defined in: webpack/types.d.ts:3150 Report the first error as a hard error instead of tolerating it.optionalbail:boolean
cache?
Defined in: webpack/types.d.ts:3155 Cache generated modules and chunks to improve performance for multiple incremental builds.optionalcache:boolean|FileCacheOptions|MemoryCacheOptions
context?
Defined in: webpack/types.d.ts:3160 The base directory (absolute path!) for resolving theoptionalcontext:string
entry option. If output.pathinfo is set, the included pathinfo is shortened to this directory.
dependencies?
Defined in: webpack/types.d.ts:3165 References to other configurations to depend on.optionaldependencies:string[]
devtool?
Defined in: webpack/types.d.ts:3170 A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).optionaldevtool:string|false|object[]
dotenv?
Defined in: webpack/types.d.ts:3187 Enable and configure the Dotenv plugin to load environment variables from .env files.optionaldotenv:boolean|DotenvPluginOptions
entry?
Defined in: webpack/types.d.ts:3192 The entry point(s) of the compilation.optionalentry:string|string[] |EntryObject| () =>string|string[] |EntryObject|Promise<EntryStatic>
experiments?
Defined in: webpack/types.d.ts:3201 Enables/Disables experiments (experimental features with relax SemVer compatibility).optionalexperiments:Experiments
extends?
Defined in: webpack/types.d.ts:3206 Extend configuration from another configuration (only works when using webpack-cli).optionalextends:string|string[]
externals?
Defined in: webpack/types.d.ts:3211 Specify dependencies that shouldn’t be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends onoptionalexternals:string|RegExp|ExternalItemObjectKnown&ExternalItemObjectUnknown| (data,callback) =>void| (data) =>Promise<ExternalItemValue> |ExternalItem[]
output.libraryTarget.
externalsPresets?
Defined in: webpack/types.d.ts:3228 Enable presets of externals for specific targets.optionalexternalsPresets:ExternalsPresets
externalsType?
Defined in: webpack/types.d.ts:3233 Specifies the default type of externals (‘amd*’, ‘umd*’, ‘system’ and ‘jsonp’ depend on output.libraryTarget set to the same value).optionalexternalsType:"window"|"promise"|"module"|"script"|"var"|"self"|"global"|"asset"|"css-import"|"css-url"|"commonjs"|"import"|"jsonp"|"this"|"assign"|"commonjs2"|"commonjs-module"|"commonjs-static"|"amd"|"amd-require"|"umd"|"umd2"|"system"|"module-import"|"node-commonjs"
ignoreWarnings?
Defined in: webpack/types.d.ts:3263 Ignore specific warnings.optionalignoreWarnings: (RegExp| {file?:RegExp;message?:RegExp;module?:RegExp; } | (warning,compilation) =>boolean)[]
infrastructureLogging?
Defined in: webpack/types.d.ts:3285 Options for infrastructure level logging.optionalinfrastructureLogging:InfrastructureLogging
loader?
Defined in: webpack/types.d.ts:3290 Custom values available in the loader context.optionalloader:Loader
mode?
Defined in: webpack/types.d.ts:3295 Enable production optimizations or development hints.optionalmode:"none"|"development"|"production"
module?
Defined in: webpack/types.d.ts:3300 Options affecting the normal modules (optionalmodule:ModuleOptions
NormalModuleFactory).
name?
Defined in: webpack/types.d.ts:3305 Name of the configuration. Used when loading multiple configurations.optionalname:string
node?
Defined in: webpack/types.d.ts:3310 Include polyfills or mocks for various node stuff.optionalnode:false|NodeOptions
optimization?
Defined in: webpack/types.d.ts:3315 Enables/Disables integrated optimizations.optionaloptimization:Optimization
output?
Defined in: webpack/types.d.ts:3320 Options affecting the output of the compilation.optionaloutput:Output
output options tell webpack how to write the compiled files to disk.
parallelism?
Defined in: webpack/types.d.ts:3325 The number of parallel processed modules in the compilation.optionalparallelism:number
performance?
Defined in: webpack/types.d.ts:3330 Configuration for web performance recommendations.optionalperformance:false|PerformanceOptions
plugins?
Defined in: webpack/types.d.ts:3335 Add additional plugins to the compiler.optionalplugins: (false|""|0|WebpackPluginInstance| (this,compiler) =>void)[]
profile?
Defined in: webpack/types.d.ts:3348 Capture timing information for each module.optionalprofile:boolean
recordsInputPath?
Defined in: webpack/types.d.ts:3353 Store compiler state to a json file.optionalrecordsInputPath:string|false
recordsOutputPath?
Defined in: webpack/types.d.ts:3358 Load compiler state from a json file.optionalrecordsOutputPath:string|false
recordsPath?
Defined in: webpack/types.d.ts:3363 Store/Load compiler state from/to a json file. This will result in persistent ids of modules and chunks. An absolute path is expected.optionalrecordsPath:string|false
recordsPath is used for recordsInputPath and recordsOutputPath if they left undefined.
resolve?
Defined in: webpack/types.d.ts:3368 Options for the resolver.optionalresolve:ResolveOptions
resolveLoader?
Defined in: webpack/types.d.ts:3373 Options for the resolver when resolving loaders.optionalresolveLoader:ResolveOptions
snapshot?
Defined in: webpack/types.d.ts:3378 Options affecting how file system snapshots are created and validated.optionalsnapshot:SnapshotOptionsWebpackOptions
stats?
Defined in: webpack/types.d.ts:3383 Stats options object or preset name.optionalstats:boolean|"none"|"normal"|"summary"|"verbose"|"errors-only"|"errors-warnings"|"minimal"|"detailed"|StatsOptions
target?
Defined in: webpack/types.d.ts:3398 Environment to build for. An array of environments to build for all of them when possible.optionaltarget:string|false|string[]
validate?
Defined in: webpack/types.d.ts:3403 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.optionalvalidate:boolean
watch?
Defined in: webpack/types.d.ts:3408 Enter watch mode, which rebuilds on file change.optionalwatch:boolean
watchOptions?
Defined in: webpack/types.d.ts:3413 Options for the watcher.optionalwatchOptions:WatchOptions