copy-webpack-plugin: copy-webpack-plugin "ignore" option not working with dot files after update
- Operating System:
- Node Version: 12.7.0
- NPM Version: 6.10.0
- webpack Version: 4.43.0
- copy-webpack-plugin Version: ^6.0.1
Expected Behavior
Copy webpack plugin should be able to ignore dotfile .gitkeep.
Actual Behavior
In the previous major version of copy-webpack-plugin it was possible to ignore the .gitkeep file on build. Now it is being totally ignored.
Code
new CopyWebpack({
patterns: [
{
from: paths.images(),
to: paths.output.images(),
globOptions: {
dot: true,
ignore: ['.gitkeep']
}
}
]
}),
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 20 (13 by maintainers)
'**/.gitkeep'
https://github.com/webpack-contrib/copy-webpack-plugin#ignoring-files@evilebottnawi, yes. I’ll open a new issue later today/tomorrow.
If you provide reproducible test repo I can investigate, in theory it can be bug on
fast-glob
side, but i think it is a problem in the configuration, that is why we ask you to provide reproducible steps, but you just remove it from the issue template, and that’s why the issue was closed@evilebottnawi, yes
It is expected, you run try to copy
./src/fonts/
directory, directory contains only one item.gitignore
and you ignore it, soglobby
return[]
empty list, we throw an error on this (previously it was warning), you can disable this behavior addingnoErrorOnMissing: true