Interface: WebpackOptionsNormalized
Defined in: webpack/types.d.ts:19157 Normalized webpack options object.Properties
amd?
Defined in: webpack/types.d.ts:19161 Set the value ofoptionalamd:false| {[index:string]:any; }
require.amd and define.amd. Or disable AMD support.
bail?
Defined in: webpack/types.d.ts:19166 Report the first error as a hard error instead of tolerating it.optionalbail:boolean
cache
cache: CacheOptionsNormalized
Defined in: webpack/types.d.ts:19171
Cache generated modules and chunks to improve performance for multiple incremental builds.
context?
Defined in: webpack/types.d.ts:19176 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:19181 References to other configurations to depend on.optionaldependencies:string[]
devServer?
Defined in: webpack/types.d.ts:19186 Options for the webpack-dev-server.optionaldevServer:false| {[index:string]:any; }
devtool?
Defined in: webpack/types.d.ts:19191 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:19208 Enable and configure the Dotenv plugin to load environment variables from .env files.optionaldotenv:boolean|DotenvPluginOptions
entry
entry: EntryNormalized
Defined in: webpack/types.d.ts:19213
The entry point(s) of the compilation.
experiments
experiments: ExperimentsNormalized
Defined in: webpack/types.d.ts:19218
Enables/Disables experiments (experimental features with relax SemVer compatibility).
externals
externals: Externals
Defined in: webpack/types.d.ts:19223
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: ExternalsPresets
Defined in: webpack/types.d.ts:19228
Enable presets of externals for specific targets.
externalsType?
Defined in: webpack/types.d.ts:19233 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:19263 Ignore specific warnings.optionalignoreWarnings: (warning,compilation) =>boolean[]
Parameters
warning
Error
compilation
Compilation
Returns
boolean
infrastructureLogging
infrastructureLogging: InfrastructureLogging
Defined in: webpack/types.d.ts:19268
Options for infrastructure level logging.
loader?
Defined in: webpack/types.d.ts:19273 Custom values available in the loader context.optionalloader:Loader
mode?
Defined in: webpack/types.d.ts:19278 Enable production optimizations or development hints.optionalmode:"none"|"development"|"production"
module
module: ModuleOptionsNormalized
Defined in: webpack/types.d.ts:19283
Options affecting the normal modules (NormalModuleFactory).
name?
Defined in: webpack/types.d.ts:19288 Name of the configuration. Used when loading multiple configurations.optionalname:string
node
node: Node
Defined in: webpack/types.d.ts:19293
Include polyfills or mocks for various node stuff.
optimization
optimization: OptimizationNormalized
Defined in: webpack/types.d.ts:19298
Enables/Disables integrated optimizations.
output
output: OutputNormalized
Defined in: webpack/types.d.ts:19303
Normalized options affecting the output of the compilation. output options tell webpack how to write the compiled files to disk.
parallelism?
Defined in: webpack/types.d.ts:19308 The number of parallel processed modules in the compilation.optionalparallelism:number
performance?
Defined in: webpack/types.d.ts:19313 Configuration for web performance recommendations.optionalperformance:false|PerformanceOptions
plugins
plugins: (Defined in: webpack/types.d.ts:19318 Add additional plugins to the compiler.WebpackPluginInstance| (this,compiler) =>void)[]
profile?
Defined in: webpack/types.d.ts:19326 Capture timing information for each module.optionalprofile:boolean
recordsInputPath?
Defined in: webpack/types.d.ts:19331 Store compiler state to a json file.optionalrecordsInputPath:string|false
recordsOutputPath?
Defined in: webpack/types.d.ts:19336 Load compiler state from a json file.optionalrecordsOutputPath:string|false
resolve
resolve: ResolveOptions
Defined in: webpack/types.d.ts:19341
Options for the resolver.
resolveLoader
resolveLoader: ResolveOptions
Defined in: webpack/types.d.ts:19346
Options for the resolver when resolving loaders.
snapshot
snapshot: SnapshotOptionsWebpackOptions
Defined in: webpack/types.d.ts:19351
Options affecting how file system snapshots are created and validated.
stats
stats: StatsValue
Defined in: webpack/types.d.ts:19356
Stats options object or preset name.
target?
Defined in: webpack/types.d.ts:19361 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:19366 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:19371 Enter watch mode, which rebuilds on file change.optionalwatch:boolean
watchOptions
watchOptions: WatchOptions
Defined in: webpack/types.d.ts:19376
Options for the watcher.