gregnb / filemanager-webpack-plugin

Copy, move, archive (zip/tar/tar.gz), delete files and directories before and after Webpack builds. Win32/Mac/*Nix supported
MIT License
463 stars 34 forks source link

Allow deleting files outside of project directory #89

Closed matthiasrohmer closed 3 years ago

matthiasrohmer commented 3 years ago

Deleting paths outside of the CWD is currently not supported. This is caused by del which only allows to do so if force is passed as an option.

It would be nice if passing this option to the delete would be supported.

sibiraj-s commented 3 years ago

Try v3.1.0. You can do this.

[
  {
    source: '/path/to/file.txt',
    options: {
      force: true,
    },
  },
];
matthiasrohmer commented 3 years ago

Nice! Thanks a lot for the quick turn-around 🙂