-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Obsolete? #43
Comments
@karlhorky Therefore, Please let me know when a version of |
Sure, will do! I imagine the new version |
So However, there is an unusual bug with it right now, which makes it a bit more involved to configure: {
resolve: 'gatsby-remark-copy-linked-files',
options: {
destinationDir: (f: {
name: string;
hash: string;
absolutePath: string;
}) =>
// Avoid errors when Gatsby calls function using this data:
// { name: n, hash: h, absolutePath: a }
// https://github.com/gatsbyjs/gatsby/pull/36213#issuecomment-1279789118
!f.absolutePath.includes('/')
? `${f.hash}/${f.name}`
: `${path.dirname(
path.relative(
path.join(__dirname, 'src', 'pages'),
f.absolutePath,
),
)}/${f.name}-${f.hash}`,
},
}, So maybe it makes sense to wait until this is resolved and the ternary is no longer needed. |
Chiming in a bit here because I came here just to try out this package because I noticed it does have one feature that the official one doesn't: Support for |
Hi @akabekobeko ! 👋 Hope you are well.
I have worked on a PR for
gatsby-remark-copy-linked-files
for a while now, and it finally got merged:gatsbyjs/gatsby#36213
This allows for specifying a relative destination dir, which may make
gatsby-remark-copy-relative-linked-files
obsolete:What are your thoughts on this?
Should
gatsby-remark-copy-relative-linked-files
be deprecated (along with a link togatsby-remark-copy-linked-files
)?The text was updated successfully, but these errors were encountered: