filemanager-webpack-plugin
filemanager-webpack-plugin copied to clipboard
Glob pattern support for delete and move
Feature request
It would be really great to have support for glob patterns not just for the copy, but for the move and delete commands as well.
Your Environment
Tech | Version |
---|---|
filemanager-plugin-webpack | 1.0.24 |
node | 7.9.0 |
OS | Windows 10 x64 |
+1
I very much agree.
After some poking around in the source, it turns out delete
uses rimraf
which supports globs. Also since copy
supports globs the workaround is to simply copy then delete.
Ok, then now a copy-then-delete can be a workaround for moving, but as it temporarily uses double space and thus it is only a workaround, we still miss the real solution. Why not to support glob pattern matching in move as in copy???
I just added *
to delete rule and it works fine ;)
Is there a way to use a glob pattern in the destination
path of a copy function? e.g.:
copy: [
{ source: 'src/_global/js/global.js', destination: 'src/slides/*/js' },
]
*
did work for us with delete on 7.0.0-beta.0
on Windows. **
did not.
With version 8.0.0, delete seems to work with pattern "target/folder/*.css"
(deletes all css files) but not with pattern "target/folder/style*.css"
(doesn't do anything). Any ideas?
Edit: seems to be a windows issue?