Closed jaschaio closed 5 years ago
Can you provide a minimal reproducible repository?
I had the same problem and fixed it temporarily by excluding the folder AND the underlying files: ['!js/skins', '!js/skins/*/'] also i removed the preceding "/"
I think issue you are having is pattern matching being relative to webpack's output.path
as described in the documentation.
@Schlammsuhler's solution is correct, although I'm not sure about needing to also include '!js/skins'
.
I'm going to close this. Please reopen if you are still having an issue.
I still think that if the folder js/skins is ignored, all underlying files should be automatically ignored too like in gitignore. Which is not the case. Please look into this
@Schlammsuhler This package uses del, which uses globby for pattern matching.
I think you're wanting globby's expandDirectories
option to work on !negative patterns, which it doesn't seem to currently. It would be helpful if you could open an issue there. Keep in mind that del uses version 6 of globby.
+1 for files should be automatically ignored too like in gitignore.
Issue description
The patterns have no effect for me. I tried with different ones taking in mind this overview, but it still deletes files it shouldn't delete.
From my understanding this should only delete css and js files starting with
bundle
orapp
:But the output I get is:
I tried explicit excluding the
js/skins/
folder via:But it still removes files from within the skins folder.
It almost seems like its not taking effect at all (even tho its only deleting
.js
and.css
files and leaves other files untouched).Webpack Config
Environment