We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I have a function that creates a list to NOT delete, but del seems not working with the string that passes from the function.
del
Example:
function excludeList { ... fileNames }
the output that already formatted as a string like this: '!dist/images/1.png', '!dist/images/2.jpg', ... ––––
'!dist/images/1.png', '!dist/images/2.jpg', ...
var excludeNames = ${fileNames}; console.log(excludeNames); del(['dist/images/**', '!dist/images', ${excludeNames} ]);
So it will delete all the images also include the exclude ones.
Any ideas? thanks!
The text was updated successfully, but these errors were encountered:
excludedNames should be an array, not a string.
excludedNames
await del(['dist/images/**', '!dist/images', ...excludedNames]);
Sorry, something went wrong.
No branches or pull requests
Hi,
I have a function that creates a list to NOT delete, but
del
seems not working with the string that passes from the function.Example:
the output that already formatted as a string like this:
'!dist/images/1.png', '!dist/images/2.jpg', ...
––––
So it will delete all the images also include the exclude ones.
Any ideas? thanks!
The text was updated successfully, but these errors were encountered: