Repository navigation
How to create "static" files through plugin? #6907
Answered
by
Josh-Cena
rohit-gohri
asked this question in
Q&A
|
I'm currently adding support for multi-file OpenAPI files (rohit-gohri/redocusaurus#23) to my plugin https://github.com/rohit-gohri/redocusaurus. I've got the bundling part done, but to provide a download link for the bundled spec I need to programmatically create a static file that would be included in the build. AFAIK the |
Answered by
Josh-Cena
Mar 13, 2022
Replies: 1 comment 7 replies
|
Just call |
7 replies
Answer selected by
rohit-gohri
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just call
fs.writeFile(path.join(context.siteDir, context.siteConfig.staticDirectories[0] ?? 'static'), data)? 🤔