We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecae0c4 commit 33be839Copy full SHA for 33be839
lib/actions/copy.js
@@ -45,7 +45,7 @@ exports.copy = function (from, to, options, context, tplSettings) {
45
}
46
47
// Sanity checks: Makes sure we copy at least one file.
48
- assert(files.length > 0, 'Trying to copy from a source that does not exist: ' + from);
+ assert(options.ignoreNoMatch || files.length > 0, 'Trying to copy from a source that does not exist: ' + from);
49
50
files.forEach(file => {
51
this._copySingle(file, generateDestination(file), options, context, tplSettings);
0 commit comments