How to create "static" files through plugin? #6907
-
|
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 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
|
Just call |
Beta Was this translation helpful? Give feedback.
Just call
fs.writeFile(path.join(context.siteDir, context.siteConfig.staticDirectories[0] ?? 'static'), data)? 🤔