Optional
amdSet the value of require.amd
and define.amd
. Or disable AMD support.
Optional
bailReport the first error as a hard error instead of tolerating it.
Optional
cacheCache generated modules and chunks to improve performance for multiple incremental builds.
Optional
contextThe base directory (absolute path!) for resolving the entry
option. If output.pathinfo
is set, the included pathinfo is shortened to this directory.
Optional
dependenciesReferences to other configurations to depend on.
Optional
devtoolA developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).
Optional
entryThe entry point(s) of the compilation.
Optional
experimentsEnables/Disables experiments (experimental features with relax SemVer compatibility).
Optional
extendsExtend configuration from another configuration (only works when using webpack-cli).
Optional
externalsSpecify 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
.
Optional
err: ErrorOptional
result: string | boolean | string[] | { Optional
externalsEnable presets of externals for specific targets.
Optional
externalsSpecifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).
Optional
ignoreIgnore specific warnings.
Optional
infrastructureOptions for infrastructure level logging.
Optional
loaderCustom values available in the loader context.
Optional
modeEnable production optimizations or development hints.
Optional
moduleOptions affecting the normal modules (NormalModuleFactory
).
Optional
nameName of the configuration. Used when loading multiple configurations.
Optional
nodeInclude polyfills or mocks for various node stuff.
Optional
optimizationEnables/Disables integrated optimizations.
Optional
outputOptions affecting the output of the compilation. output
options tell webpack how to write the compiled files to disk.
Optional
parallelismThe number of parallel processed modules in the compilation.
Optional
performanceConfiguration for web performance recommendations.
Optional
pluginsAdd additional plugins to the compiler.
Optional
profileCapture timing information for each module.
Optional
recordsStore compiler state to a json file.
Optional
recordsLoad compiler state from a json file.
Optional
recordsStore/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.
Optional
resolveOptions for the resolver.
Optional
resolveOptions for the resolver when resolving loaders.
Optional
snapshotOptions affecting how file system snapshots are created and validated.
Optional
statsStats options object or preset name.
Optional
targetEnvironment to build for. An array of environments to build for all of them when possible.
Optional
watchEnter watch mode, which rebuilds on file change.
Optional
watchOptions for the watcher.
Generated using TypeDoc
Options object as provided by the user.