Allow arbitrary extensions (not just .html files)#53
Allow arbitrary extensions (not just .html files)#53mikhuang wants to merge 1 commit intomarkdalgleish:masterfrom
Conversation
|
Definitely open to this, especially since it makes this plugin more useful for static file generation in general—but wondering whether it would be better to either:
What do you think? cc @KyleAMathews, would either of these changes impact Gatsby in any negative way? |
|
Nope, shouldn't be a problem. Gatsby fully controls paths so it'd be easy to adjust if there's any breaking changes. |
|
@KyleAMathews not that it affects Gastby in any way, but what are your thoughts from an API design perspective? Do you have a preference? |
|
My personal preference is always for "clean" urls e.g. |
nonphoto
left a comment
There was a problem hiding this comment.
This looks like it should work fine. Can it be merged? I am also having this problem.
|
Hey, We are using this plugin on Docusaurus 2 and have a few issues due to using That would be nice if it was possible to customize the fs filename path creation. @markdalgleish do you still maintain this project? Otherwise, I'd probably maintain my own fork. |
I also prefer "clean URLs" without extensions, but I've a similar problem on my Gatsby / Novela / Netlify blog here: https://sebastienlorber.com/records-and-tuples-for-react |
This may be too specific of a usage case but I needed to generate arbitrary file extensions, specifically .liquid files. Perhaps it will help someone?