You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using webpack-clean, what option do I need to pass to keep a whole directory, i.e. to ensure the directory does not get deleted?
Example
My output directory is dist. I want index.js to be deleted, but I want to keep the .git folder.
- dist
-- .git
-- index.js
Attempt
I have tried the following. But this stops it from deleting anything at all. Might it have to do with the . in .git? What is the correct way to use this, please?
new CleanWebpackPlugin({
cleanOnceBeforeBuildPatterns: ['!.git'],
}),
The text was updated successfully, but these errors were encountered:
Issue description or question
When using webpack-clean, what option do I need to pass to keep a whole directory, i.e. to ensure the directory does not get deleted?
Example
My output directory is
dist
. I wantindex.js
to be deleted, but I want to keep the.git
folder.Attempt
I have tried the following. But this stops it from deleting anything at all. Might it have to do with the
.
in.git
? What is the correct way to use this, please?The text was updated successfully, but these errors were encountered: