-
-
Notifications
You must be signed in to change notification settings - Fork 36
Plugin does not preserve folder structure source vs destination when using the copy event #94
Copy link
Copy link
Closed
Description
Config
new FileManagerPlugin({
events: {
onStart: {
delete: ["dest/**", "webresources/**"],
},
onEnd: {
copy: [
{
source: "sources/images/**/*.{png,gif,jpg,jpeg,ico,svg}",
destination: "webresources/images",
},
{
source: "dest/fonts",
destination: "webresources/fonts",
},
{
source: "dest/{main,runtime~main,vendors}.bundle.{js,js.map}",
destination: "webresources/js",
},
{
source: "dest/*.{css,css.map}",
destination: "webresources/css",
},
{
source: "dest/webresources/images/**/*.{png,gif,jpg,jpeg,ico,svg}",
destination: "webresources/images",
},
],
},
},
});Issue
backtracked the issue to v3.0.0-alpha.0 on commit Replace cpx, remove fs-extra, update ava
basically under 'sources/images' I have additional folders named svg and favicon.
v3.0.0+ using cpy doesn't create those subfolders in the destination folder anymore as cpx did. everything gets mixed up in the same dest folder 'webresouces/images'
Your Environment
| Tech | Version |
|---|---|
| filemanager-plugin-webpack | 3.1.0 |
| node | 10.15.3 |
| OS | linux |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels