How would you cancel cleaning a specific folder using grunt-contrib-clean. Negating a match does not work.
clean: {
plugins: [
'app/plugins/myplugin',
'!app/plugins/myplugin/assets'
]
}
I tried a couple of different negation patterns, for example:
'!app/plugins/myplugin/assets'
'!app/plugins/myplugin/assets/**'
as well as to pay attention to the positions in the array in case it matters. It seems that you cannot save the contents of the folder / contents in a clean form. The assets folder contains jQuery, AngularJS and built-in Bootstrap (SASS), which I do not want to store in copy / create, seems like a waste of time.
source
share