You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an asset that looks like this:
{
from: '/home/kkoukiou/repos/cockpit/node_modules/@patternfly/patternfly/assets/fonts/RedHatFont-updated/RedHatText/RedHatText-updated-Bold.woff2',
to: '/home/kkoukiou/repos/cockpit/dist/static/fonts/RedHatText-Bold.woff2'",
}
The ./dist/static/fonts directory does not exist and therefore the plugin fails with: text: "ENOENT: no such file or directory, copyfile ...
If I use directory for the 'to' path it works, but I need to rename the asset so this is not a solution.
I believe this conditional directory creation could be removed
The text was updated successfully, but these errors were encountered:
KKoukiou
changed the title
Dest directory is not recursively created if 'to' asset path is not a directory
Destination directory is not recursively created if 'to' asset path is not a directory
Mar 3, 2023
I have an asset that looks like this:
{
from: '/home/kkoukiou/repos/cockpit/node_modules/@patternfly/patternfly/assets/fonts/RedHatFont-updated/RedHatText/RedHatText-updated-Bold.woff2',
to: '/home/kkoukiou/repos/cockpit/dist/static/fonts/RedHatText-Bold.woff2'",
}
The ./dist/static/fonts directory does not exist and therefore the plugin fails with: text: "ENOENT: no such file or directory, copyfile ...
If I use directory for the 'to' path it works, but I need to rename the asset so this is not a solution.
I believe this conditional directory creation could be removed
esbuild-plugins/packages/esbuild-plugin-copy/src/lib/handler.ts
Line 77 in a3df3e2
The text was updated successfully, but these errors were encountered: