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
|[`context`](#context)|`{String}`|`options.context \|\| compiler.options.context`| A path that determines how to interpret the `from` path. |
82
-
|[`globOptions`](#globoptions)|`{Object}`|`undefined`|[Options][glob-options] passed to the glob pattern matching library including `ignore` option. |
83
-
|[`toType`](#totype)|`{String}`|`undefined`| Determinate what is `to` option - directory, file or template. |
84
-
|[`force`](#force)|`{Boolean}`|`false`| Overwrites files already in `compilation.assets` (usually added by other plugins/loaders). |
85
-
|[`flatten`](#flatten)|`{Boolean}`|`false`| Removes all directory references and only copies file names. |
86
-
|[`transform`](#transform)|`{Function}`|`undefined`| Allows to modify the file contents. |
87
-
|[`cacheTransform`](#cacheTransform)|`{Boolean\|Object}`|`false`| Enable `transform` caching. You can use `{ cache: { key: 'my-cache-key' } }` to invalidate the cache. |
88
-
|[`transformPath`](#transformpath)|`{Function}`|`undefined`| Allows to modify the writing path. |
|[`context`](#context)|`{String}`|`options.context \|\| compiler.options.context`| A path that determines how to interpret the `from` path. |
82
+
|[`globOptions`](#globoptions)|`{Object}`|`undefined`|[Options][glob-options] passed to the glob pattern matching library including `ignore` option. |
83
+
|[`toType`](#totype)|`{String}`|`undefined`| Determinate what is `to` option - directory, file or template. |
84
+
|[`force`](#force)|`{Boolean}`|`false`| Overwrites files already in `compilation.assets` (usually added by other plugins/loaders). |
85
+
|[`flatten`](#flatten)|`{Boolean}`|`false`| Removes all directory references and only copies file names. |
86
+
|[`transform`](#transform)|`{Function}`|`undefined`| Allows to modify the file contents. |
87
+
|[`cacheTransform`](#cacheTransform)|`{Boolean\|Object}`|`false`| Enable `transform` caching. You can use `{ cache: { key: 'my-cache-key' } }` to invalidate the cache. |
88
+
|[`transformPath`](#transformpath)|`{Function}`|`undefined`| Allows to modify the writing path. |
89
+
|[`noErrorOnMissing`](#noerroronmissing)|`{Boolean}`|`false`| Doesn't generate an error on missing file(s). |
exports[`validate options should throw an error on the "patterns" option with "[""]" value 1`] =`
@@ -27,6 +27,11 @@ exports[`validate options should throw an error on the "patterns" option with "[
27
27
- options.patterns should be an non-empty array."
28
28
`;
29
29
30
+
exports[`validate options should throw an error on the "patterns" option with "[{"from":"","to":"dir","context":"context","noErrorOnMissing":"true"}]" value 1`] =`
31
+
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
32
+
- options.patterns[0].noErrorOnMissing should be a boolean."
33
+
`;
34
+
30
35
exports[`validate options should throw an error on the "patterns" option with "[{"from":"","to":"dir","context":"context"}]" value 1`] =`
31
36
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
32
37
- options.patterns[0].from should be an non-empty string."
@@ -61,7 +66,7 @@ exports[`validate options should throw an error on the "patterns" option with "[
61
66
exports[`validate options should throw an error on the "patterns" option with "[{"from":"test.txt","to":"dir","context":"context"}]" value 1`] =`
62
67
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
0 commit comments