You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Extend configuration from another configuration (only works when using webpack-cli).
167
+
*/
168
+
exporttypeExtends=ExtendsItem[]|ExtendsItem;
169
+
/**
170
+
* Path to the configuration to be extended (only works when using webpack-cli).
171
+
*/
172
+
exporttypeExtendsItem=string;
165
173
/**
166
174
* 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`.
* Enables/Disables experiments (experimental features with relax SemVer compatibility).
820
828
*/
821
829
experiments?: Experiments;
830
+
/**
831
+
* Extend configuration from another configuration (only works when using webpack-cli).
832
+
*/
833
+
extends?: Extends;
822
834
/**
823
835
* 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`.
Copy file name to clipboardexpand all lines: schemas/WebpackOptions.json
+21
Original file line number
Diff line number
Diff line change
@@ -944,6 +944,24 @@
944
944
}
945
945
}
946
946
},
947
+
"Extends": {
948
+
"description": "Extend configuration from another configuration (only works when using webpack-cli).",
949
+
"anyOf": [
950
+
{
951
+
"type": "array",
952
+
"items": {
953
+
"$ref": "#/definitions/ExtendsItem"
954
+
}
955
+
},
956
+
{
957
+
"$ref": "#/definitions/ExtendsItem"
958
+
}
959
+
]
960
+
},
961
+
"ExtendsItem": {
962
+
"description": "Path to the configuration to be extended (only works when using webpack-cli).",
963
+
"type": "string"
964
+
},
947
965
"ExternalItem": {
948
966
"description": "Specify dependency that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.",
Copy file name to clipboardexpand all lines: test/__snapshots__/Cli.basictest.js.snap
+26
Original file line number
Diff line number
Diff line change
@@ -825,6 +825,32 @@ Object {
825
825
"multiple": false,
826
826
"simpleType": "boolean",
827
827
},
828
+
"extends": Object {
829
+
"configs": Array [
830
+
Object {
831
+
"description": "Path to the configuration to be extended (only works when using webpack-cli).",
832
+
"multiple": true,
833
+
"path": "extends[]",
834
+
"type": "string",
835
+
},
836
+
],
837
+
"description": "Path to the configuration to be extended (only works when using webpack-cli).",
838
+
"multiple": true,
839
+
"simpleType": "string",
840
+
},
841
+
"extends-reset": Object {
842
+
"configs": Array [
843
+
Object {
844
+
"description": "Clear all items provided in 'extends' configuration. Extend configuration from another configuration (only works when using webpack-cli).",
845
+
"multiple": false,
846
+
"path": "extends",
847
+
"type": "reset",
848
+
},
849
+
],
850
+
"description": "Clear all items provided in 'extends' configuration. Extend configuration from another configuration (only works when using webpack-cli).",
* Extend configuration from another configuration (only works when using webpack-cli).
2201
+
*/
2202
+
extends?: string|string[];
2203
+
2199
2204
/**
2200
2205
* 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`.
0 commit comments