MCPcopy
hub / github.com/webpack/webpack / WebpackOptions

Interface WebpackOptions

declarations/WebpackOptions.d.ts:926–1079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

924 * Options object as provided by the user.
925 */
926export interface WebpackOptions {
927 /**
928 * Set the value of `require.amd` and `define.amd`. Or disable AMD support.
929 */
930 amd?: Amd;
931 /**
932 * Report the first error as a hard error instead of tolerating it.
933 */
934 bail?: Bail;
935 /**
936 * Cache generated modules and chunks to improve performance for multiple incremental builds.
937 */
938 cache?: CacheOptions;
939 /**
940 * The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.
941 */
942 context?: Context;
943 /**
944 * References to other configurations to depend on.
945 */
946 dependencies?: Dependencies;
947 /**
948 * Options for the webpack-dev-server.
949 */
950 devServer?: DevServer;
951 /**
952 * A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).
953 */
954 devtool?: DevTool;
955 /**
956 * Enable and configure the Dotenv plugin to load environment variables from .env files.
957 */
958 dotenv?: Dotenv;
959 /**
960 * The entry point(s) of the compilation.
961 */
962 entry?: Entry;
963 /**
964 * Enables/Disables experiments (experimental features with relax SemVer compatibility).
965 */
966 experiments?: Experiments;
967 /**
968 * Extend configuration from another configuration (only works when using webpack-cli).
969 */
970 extends?: Extends;
971 /**
972 * 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`.
973 */
974 externals?: Externals;
975 /**
976 * Enable presets of externals for specific targets.
977 */
978 externalsPresets?: ExternalsPresets;
979 /**
980 * Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).
981 */
982 externalsType?: ExternalsType;
983 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected