map(file) {
// https://github.com/webpack-contrib/copy-webpack-plugin/issues/104
// We need to do this until copy-webpack-plugin supports webpack
file.name = file.name.replace(/\.[a-f0-9]{10}\./, '.');
// also remove directories...
file.name = path.basename(file.name);
return file;
}
I'm not sure where the bug lies here, but when i use the https://github.com/lcxfs1991/copy-webpack-plugin and then run manifest plugin, it includes the directories in the name of the file.
Im currently doing
There is also a problem with the hashes appearing in the name, but i believe this has been addressed/mentioned in https://github.com/webpack-contrib/copy-webpack-plugin/issues/104