Skip to main content
webpack / WebpackOptionsNormalized

Interface: WebpackOptionsNormalized

Defined in: webpack/types.d.ts:19157 Normalized webpack options object.

Properties

amd?

optional amd: false | {[index: string]: any; }
Defined in: webpack/types.d.ts:19161 Set the value of require.amd and define.amd. Or disable AMD support.

bail?

optional bail: boolean
Defined in: webpack/types.d.ts:19166 Report the first error as a hard error instead of tolerating it.

cache

cache: CacheOptionsNormalized
Defined in: webpack/types.d.ts:19171 Cache generated modules and chunks to improve performance for multiple incremental builds.

context?

optional context: string
Defined in: webpack/types.d.ts:19176 The base directory (absolute path!) for resolving the entry option. If output.pathinfo is set, the included pathinfo is shortened to this directory.

dependencies?

optional dependencies: string[]
Defined in: webpack/types.d.ts:19181 References to other configurations to depend on.

devServer?

optional devServer: false | {[index: string]: any; }
Defined in: webpack/types.d.ts:19186 Options for the webpack-dev-server.

devtool?

optional devtool: string | false | object[]
Defined in: webpack/types.d.ts:19191 A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).

dotenv?

optional dotenv: boolean | DotenvPluginOptions
Defined in: webpack/types.d.ts:19208 Enable and configure the Dotenv plugin to load environment variables from .env files.

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?

optional externalsType: "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"
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).

ignoreWarnings?

optional ignoreWarnings: (warning, compilation) => boolean[]
Defined in: webpack/types.d.ts:19263 Ignore specific warnings.

Parameters

warning
Error
compilation
Compilation

Returns

boolean

infrastructureLogging

infrastructureLogging: InfrastructureLogging
Defined in: webpack/types.d.ts:19268 Options for infrastructure level logging.

loader?

optional loader: Loader
Defined in: webpack/types.d.ts:19273 Custom values available in the loader context.

mode?

optional mode: "none" | "development" | "production"
Defined in: webpack/types.d.ts:19278 Enable production optimizations or development hints.

module

module: ModuleOptionsNormalized
Defined in: webpack/types.d.ts:19283 Options affecting the normal modules (NormalModuleFactory).

name?

optional name: string
Defined in: webpack/types.d.ts:19288 Name of the configuration. Used when loading multiple configurations.

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?

optional parallelism: number
Defined in: webpack/types.d.ts:19308 The number of parallel processed modules in the compilation.

performance?

optional performance: false | PerformanceOptions
Defined in: webpack/types.d.ts:19313 Configuration for web performance recommendations.

plugins

plugins: (WebpackPluginInstance | (this, compiler) => void)[]
Defined in: webpack/types.d.ts:19318 Add additional plugins to the compiler.

profile?

optional profile: boolean
Defined in: webpack/types.d.ts:19326 Capture timing information for each module.

recordsInputPath?

optional recordsInputPath: string | false
Defined in: webpack/types.d.ts:19331 Store compiler state to a json file.

recordsOutputPath?

optional recordsOutputPath: string | false
Defined in: webpack/types.d.ts:19336 Load compiler state from a json file.

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?

optional target: string | false | string[]
Defined in: webpack/types.d.ts:19361 Environment to build for. An array of environments to build for all of them when possible.

validate?

optional validate: boolean
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.

watch?

optional watch: boolean
Defined in: webpack/types.d.ts:19371 Enter watch mode, which rebuilds on file change.

watchOptions

watchOptions: WatchOptions
Defined in: webpack/types.d.ts:19376 Options for the watcher.