Closed popolan1986 closed 5 years ago
@popolan1986 I ran into the same problem and replaced the '!excluded_dir/**/*'
pattern with '!excluded_dir/**'
. That does seem to work.
@sirockin , I know why the nested directory is deleted. abc/**/*
matches abc's nested directories but not itself so the clean plugin deletes abc. I can use Braced section to exclude abc directory like this !abc{, **/*}
(= !abc or !abc/**/*
).
@popolan1986 is your issue resolved? Can I close this?
@popolan1986 is your issue resolved? Can I close this?
Yes, you can.
Issue description or question
I fail to use !negative pattern to exclude directories in multiple webpack configs to prevent this plugin from deleting nested paths. After building, the nested directory
abc
is deleted.Webpack Config
Environment