Options object as provided by the user.
Set the value of require.amd and define.amd. Or disable AMD support.
booleanReport the first error as a hard error instead of tolerating it.
boolean | FileCacheOptions | MemoryCacheOptionsCache generated modules and chunks to improve performance for multiple incremental builds.
stringThe base directory (absolute path!) for resolving the entry option. If output.pathinfo is set, the included pathinfo is shortened to this directory.
string[]References to other configurations to depend on.
string | false | { type: "css" | "javascript" | "all"; use: RawDevTool }[]A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).
boolean | DotenvPluginOptionsEnable and configure the Dotenv plugin to load environment variables from .env files.
string | string[] | EntryObject | (() => string | string[] | EntryObject | Promise<EntryStatic>)The entry point(s) of the compilation.
ExperimentsEnables/Disables experiments (experimental features with relax SemVer compatibility).
Extend configuration from another configuration (only works when using webpack-cli).
string | RegExp | ExternalItemObjectKnown & ExternalItemObjectUnknown | ((data: ExternalItemFunctionData, callback: (err?: Error | null, result?: string | boolean | string[] | ExternalItemValueObjectKnown & ExternalItemValueObjectUnknown) => void) => void) | ((data: ExternalItemFunctionData) => Promise<ExternalItemValue>) | ExternalItem[]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.
ExternalsPresetsEnable presets of externals for specific targets.
"asset" | "module" | "asset-url" | "css-import" | "promise" | "global" | "import" | "this" | "var" | "commonjs" | "self" | "script" | "jsonp" | "assign" | "window" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "amd-async" | "umd" | "umd2" | "system" | "module-import" | "node-commonjs" | "css-url"Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).
Ignore specific warnings.
Options for infrastructure level logging.
LoaderCustom values available in the loader context.
"development" | "none" | "production"Enable production optimizations or development hints.
ModuleOptionsOptions affecting the normal modules (NormalModuleFactory).
stringName of the configuration. Used when loading multiple configurations.
false | NodeOptionsInclude polyfills or mocks for various node stuff.
OptimizationEnables/Disables integrated optimizations.
OutputOptions affecting the output of the compilation. output options tell webpack how to write the compiled files to disk.
numberThe number of parallel processed modules in the compilation.
false | PerformanceOptionsConfiguration for web performance recommendations.
Add additional plugins to the compiler.
booleanCapture timing information for each module.
string | falseStore compiler state to a json file.
string | falseLoad compiler state from a json file.
string | falseStore/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.
ResolveOptionsOptions for the resolver.
ResolveOptionsOptions for the resolver when resolving loaders.
Options affecting how file system snapshots are created and validated.
boolean | "none" | "verbose" | "summary" | "errors-only" | "errors-warnings" | "minimal" | "normal" | "detailed" | StatsOptionsStats options object or preset name.
Environment to build for. An array of environments to build for all of them when possible.
booleanEnable validation of webpack configuration. Defaults to true in development mode. In production mode, defaults to true unless futureDefaults is enabled, then defaults to false.
booleanEnter watch mode, which rebuilds on file change.
WatchOptionsOptions for the watcher.