Skip to content
New issue

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

Add possibility to exclude files from removal #2

Open
vladshcherbin opened this issue Mar 13, 2018 · 2 comments
Open

Add possibility to exclude files from removal #2

vladshcherbin opened this issue Mar 13, 2018 · 2 comments

Comments

@vladshcherbin
Copy link

It would be great to have a possibility to exclude files from removal, for example:

clear({
  targets: ['./build/'],
  exclude: ['.env', 'preserved.js']
})
@vladshcherbin
Copy link
Author

Since you are using rimraf, there is an issue with proposed solution as a glob option which may work.

@vladshcherbin
Copy link
Author

vladshcherbin commented Mar 13, 2018

Moved to using rollup-plugin-delete instead. 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant