I have ts-loader that is used instead of tsc, therefore I can't remove .d.ts. I was able to achieve it with this plugin, but now I have empty dirs. I was wondering if I can do something like:
I want it to be able to recursively (because of ** ) remove all empty dirs (starting from the bottom or with smart check).
I don't know how to change the config syntax, but I would also like to remove the top source dir itself too, if everything inside it is only empty dirs.
Config
Issue
I have
ts-loader
that is used instead oftsc
, therefore I can't remove.d.ts
. I was able to achieve it with this plugin, but now I have empty dirs. I was wondering if I can do something like:I want it to be able to recursively (because of
**
) remove all empty dirs (starting from the bottom or with smart check).I don't know how to change the config syntax, but I would also like to remove the top
source
dir itself too, if everything inside it is only empty dirs.Your Environment